Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there
I currently have created user parameters within my drawing template that i need to populate using part parameters.
Part level - has job information that sends data to and excel spreadsheet that i also need to populate my drawing user parameter.
Assembly- Has alternate parameters that populate my drawing.
partdoc = ThisDrawing.ModelDocument(1) '''THis needs to search all part files for the below 'Dim oAss As AssemblyDocument = ThisApplication.ActiveDocument 'Below code is to pull parameters from a document which is referenced in drawing document PROJECT_NO = Parameter(partdoc.DisplayName, "PROJECT_NO") CLIENT1 = Parameter(partdoc.DisplayName, "CLIENT1") RACKING_MATERIAL = Parameter(partdoc.DisplayName, "RACKING_MATERIAL") FRAME_MATERIAL = Parameter(partdoc.DisplayName, "FRAME_MATERIAL") RACKING_FINISH = Parameter(partdoc.DisplayName, "RACKING_FINISH") FRAME_FINISH = Parameter(partdoc.DisplayName, "FRAME_FINISH") LOCATION = Parameter(partdoc.DisplayName, "LOCATION ") COOLING = Parameter(partdoc.DisplayName, "COOLING ") COOLING_TEMP = Parameter(partdoc.DisplayName, "COOLING_TEMP") PIPE_RUN = Parameter(partdoc.DisplayName, "PIPE_RUN ") CONDENSER = Parameter(partdoc.DisplayName, "CONDENSER") LIGHT_TEMP = Parameter(partdoc.DisplayName, "LIGHT_TEMP ") CONTROLLER_LOCATION = Parameter(partdoc.DisplayName, "CONTROLLER_LOCATION")
As i am trying to create a template drawing, i need the rule to search all parts files for the user parameters listed rather than a specific part.
There may be a much easier way to do this, but i am still learning everything
Thanks
Solved! Go to Solution.