- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Models iproperties for titleblock
Hello,
I am using the model's iproperties to fill in my titleblock. I guess it is a well known way to handle this titleblock information?
I would like to modify this information from the drawing (dwg) without every time have to open the assembly or part that is displayed in the drawing. Is that possible? I am sure this is an often asked request?
BR, Johan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, yes it possible.
please give specific information what do you want.
Autodesk Inventor Professional Certified 2014
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thx.
The models always contain the same custom iproperties that are used to fill in the titleblock
ACME_TITLE
ACME_DESCRIPTION
ACME_DRAWING
ACME_SIZE
ACME_TYPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
try this:
oDoc = ThisDrawing.ModelDocument
oCustPropSet = oDoc.PropertySets(4)
For Each oProp In oCustPropSet
Select Case oProp.Name
Case "ACME_TITLE"
ValueProp = InputBox("ACME_TITLE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_DESCRIPTION"
ValueProp = InputBox("ACME_DESCRIPTION", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_DRAWING"
ValueProp = InputBox("ACME_DRAWING", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_SIZE"
ValueProp = InputBox("ACME_SIZE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
Case "ACME_TYPE"
ValueProp = InputBox("ACME_TYPE", "INPUT FIELD", oProp.value)
oProp.value = ValueProp
End Select
Next
odoc.Save
Autodesk Inventor Professional Certified 2014
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thanks, it kind of works, but it is not that stable. i mean, there is no real-time update between the model's iproperties and the titleblock information. Sometimes all iproperties are blank after running and cancelling your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
add more line after oDoc.Save:
InventorVb.DocumentUpdate()
Autodesk Inventor Professional Certified 2014