1 Answers
A:
Yes, you can detect whether dimensions in a drawing were retrieved from the model (IPT file) using the Inventor API. Here's how to do it:
Sample Code: Check if Dimension Was Retrieved
Dim oDrawingDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = oDrawingDoc.ActiveSheet
For Each oDim As GeneralDimension In oSheet.DrawingDimensions.GeneralDimensions
If Not oDim.RetrievedFrom Is Nothing Then
Debug.Print("Dimension '" & oDim.Text.FormattedText & "' was retrieved from model.")
Else
Debug.Print("Dimension '" & oDim.Text.FormattedText & "' was manually created.")
End If
Next
This lets you:
Find the Best CAD Software
Explore all products with features, pricing, reviews and more
View All SoftwareHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers