Grasshopper

algorithmic modeling for Rhino

Nearly, When I Coding to create an Custom Object with Custom persist paramater. I find an very strange problerm, the strange is that you actually can not find where throw the Exception at the Code. And I set an breakpoint in the "SetFilePath" Component's  SoleInstance method. But the code isn't run into the method before pupup this Component Exception. So I think It is not the plobrem with the "SetFilePath"

Component's plobrem.

And It troubled me for a long time, Could help me find what wrong with code as below, and the problerm sreenshot as below:

Notice:

The paramater is set through "set one path " menu item. and the "set one path" menu item ivoke the method of "Prompt_Plural" in Custom PersistentParam know as "PathParameter" in the below.

Plobrem screenShot:

Code ScreenShot:

Views: 840

Replies are closed for this discussion.

Replies to This Discussion

ThankYou

Davids. I have got it.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service