- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I'm still a bit newbie at iLogic - but have managed to learn a lot already from other posts here on the forum - thanks for that 🙂 So, I have a little problem - I would like some help how best to do it.
I have with success used the following code to get the material from a part into drawing, and use it to set custom iProperty:
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
iProperties.Value("Custom", "PartMaterial") = UCase(iProperties.Material(modelName))
I can then manipulate and use the "PartMaterial" value as I needed in the dwg.
This works as expected - so far so good.
Now, I try to do the same for getting the "appearance" - paint color (PartColor) from the model and to be used similarly:
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName) iProperties.Value("Custom", "Paint") = UCase(iProperties.PartColor(modelName))
But this I can't get to work. I tried "appearance" instead of "PartColor" etc. - but maybe this is where I go wrong?
I further get the following error:
Error in rule: GetPaint, in document: Square Plate 1
Change for string "Square Plate 1.ip" to typo 'Integer' is not valid.
Hope you can help 🙂
Solved! Go to Solution.