I think I have a challanging ilogic problem for someone.
I am introducing and setting up Inventor to the company I just started working for. I am trying to adapt to their current drafting style. I am at a loss how to create a smart view label that will take infromation from a iproperties and custom iproperties of the model data of a selected view. Note that there may be many view in one drawing sheet.
Attached is am image of the data would I want extracted and inserted into this view label.
I am curious if this is doable.I am assuming it is from some of the post I have seen about ilogic symbols but I am not familir with writting such a code.
Thanks in advanced for any help with this. _Donald
Hi,
It looks to me you will need to create a Sketched Symbol with the geometries and texts. The texts are kind of "Document Property Text" which are connected with the document property. I'd suggest you take a look at the relevant topics in Inventor API help document (C:\Program Files\Autodesk\Inventor 2013\Local Help\admapi_17_0.chm)
1. XML Tags for FormattedText
In which you can know the different types of texts, including the type Document Properties
2. SketchedSymbolDefinition
In which there are samples on how to create Sketched Symbol.
Once you get familar with the topics, you could start to write some code of your own, i.e.
1) create a SketchedSymbolDefinition
2) draw the geometries in the sketch of the symbol such as arc, lines
3) add the texts of Document Properties, each of which links to corresponding document property
4) insert the Sketched Symbol with the SketchedSymbolDefinition
I am aware of how to create a sketch symbol and add document properties. The problem is that the document properties are not avaialbe for selection with specific view data. (i.e. I am placing many part and assemblies on one drawing so taking the model properties data only points to the first part/assembly inserted into the drawings). I need to access the meta data from the model data in a specific created view.
Have a look at this thread,
It should help you get started.
You basically want to create a sketch symbol and link all the parameters you can. For the ones you can't, you will need to get the iProperties via the API (Use prompted entries in the sketch symbol for these properties).
It just means they won't automatically update when you change the model properties. You willll either have to re-create the symbol or write some come to update all symbols on save or something if that is an issue.
Regards, Matt.