07-27-2019
03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-27-2019
03:51 AM
Hi everyone,
I've tried to find the code for get the appearance of a part from the drawing and I don't want to use parameters the code would be something like the one shown below:
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
MessageBox.Show(iProperties.PartColor (modelName), "Title")
but unfortunately it doesn't work, someone can to help me with it?
Cheers
Solved! Go to Solution.
07-27-2019
03:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-27-2019
03:03 PM
Hi, try the following code. I think it should work for you.
doc = ThisDrawing.ModelDocument MessageBox.Show(doc.ActiveAppearance.displayname)
I hope this helps with your problem. regards
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn
07-28-2019
01:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-28-2019
01:12 AM
I think he wanted the part appearance, not the document/display appearance.
07-28-2019
11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report