- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have done some searching and will continue to look, but is there an easy way to get this illogic code to work in .net addin? I have having a trouble finding a way to easily pull the model information of the drawing document and setting my ipropery value (in my drawing) to use the "DocName, iprop set name, iprop name" arguments.
- Partial I Logic code below -
'Exit rule if no part or assembly is in the drawing yet.
If (ThisDrawing.ModelDocument Is Nothing) Then
Return
Else
'Get the filename of the doc the drawing points to
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
iProperties.Value("Custom", "InvTic_ActPcSqFt") = iProperties.Value(modelName, "Custom", "Tic_ActualSqFt")
End If
I can't find in the API where I can grab the Drawing.ModelDocument and be able to use that document to set the value to the iproperties. I guess I am wondering if these methods are even available in the API or if they are only iLogic specific and/or if they are in the API where can I find them?
Otherwise it looked like there where some other posts I could try in regards to the drawing views.
The other option I had was just to keep our illogic code and potentially call that from my addin. However, if I just build it into my addin, then we wouldn't need the illogic portion of it.
If this response answers your question please click "Accept as Solution".
Solved! Go to Solution.