Using drawings to pass iproperties from a source model to many different target models
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working out how to automate part of our hydraulic hose documentation. We are trying to share part number, description and revision iproperties between a straight hose assembly parent and several different 3d routed hose assemblies. The goal is to have a drawing file showing the straight hose assembly for our fabricators and isometric views of each route. For example I create a 36" overall length hose. In the real world, I can use that same hose to connect both the base and rod ends of a cylinder to a manual valve. If I use Tube and Pipe, I have to create a new 3d model of the hose from the base end to the valve and a 2nd model from the rod end of the valve.
We use Vault Pro and enforce unique filenames. We normally make the model filename = drawing filename = company part number. We don't use Items. We have some custom code that uses the Vault BOM data to generate our purchasing info, so we have to be careful how we create our Inventor BOMS.
We haven't moved to Inventor 2022, so model states aren't available yet.
I plan to start with a straight hose assembly model with 2 ends and a length of hose. I will use this model as a source of purchasing info for our prototype builds. Once the prototype build is complete, I will start up Tube and Pipe to create 3d routes to match the prototype. I want the machine BOM to remain the same as I replace the straigh hose models with the routed ones.
My current plan is to use an Inventor drawing to show both the straight hose and the formed hoses. I want to write some iLogic to pull iproperties from the straight hose model and push them into the various routed hose models.
Rough workflow:
- User creates an idw
- The first base view on the first sheet shows the straight hose model
- Projected views of the straight hose model are added as required
- Base views of each different 3d routed hose model are added
- iLogic is run by user
- Code reads the Description, Part Number and Revision iprops from the straight hose model
- Code writes those iprops to each of the formed hose models
- User saves the updates
My challenges so far:
How do I identify the straight hose model in the drawing file?
How do I pull the iprop values from that model?
Do I store the values in the drawing iprops, or just in temporary variables in the ilogic coder?
Once I have the iprop values, how do I write them to the formed models, but not try to overwrite the existing values in the straight hose?
Should I try to create a form that displays the iprops, allows the user to edit them, and writes the values to all models in the drawing?
Suggestions?
Example Code?
Steve Walton
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Inventor 2025
Vault Professional 2025