I am trying to use the Inventor API to customize the text label that appears next to a section cutline in a drawing (see image below).
The text in question can be modfied through the Name variable of the SectionDrawingViewType object. However, this approach changes both the name of the SectionDrawingViewType object, as well as the text next to the section line. Is it possible to access just the section line text through the API? Is this text field exposed? Which object type is this text field?
Thanks!
So I believe I found what your looking for.
Try using the .text property of the SectionDrawingView.Label object in question.
This will allow you to keep the unique name of the SectionDrawingView while still changing the text.
Let me know how it goes.
Thanks,
- Thomas
Hi Thomas-
Thank you for your reply. I tried your suggestions and still am having no luck. For Inventor 2013 the field SectionViewObject.Label.Text is read only and is a concatentaion of the the .Name and .Scale property fields which can be changed---but doing so alters the label on the SectionViewObject and as well as the text field associated with the section cut line.
In the example shown below the variable SectionViewObject.Label.Text reads "A2 SCALE:1/4". What I want to do is keep that name, but edit the field labeled "A2 SH3" in the second image below, without affecting/changing the "A2 SCALE:1/4" label.
Please let me know if you have any other suggestions.
Thanks again!
Autodesk Inventor 2016... ... and the section symbol itself is still an 'UnknowObject'. About the only thing to do is to hide it and put in a custom sketch symbol.