Macro that generates assembly
Macro that generates assembly
(OP)
Hello
I have many subassemblies and I'm planning to write macro that automatically generates Mainassembly. Each subassembly has its origin in the same place as in the mainassembly, because I have used layout sketches.
When manually inserting subassembly to main assembly it will automatically take its place in main assemly, because origin are coincident and planes are paraller with main assembly.
OK. Now I have a problem with macros. AddComponent function asks coordinates of the component center not coordinates of the component origin.
Should I mate origin with addMate function in my macro or is there any easier way to solve this problem. I would like to generate final assembly without mates, just fix components when they are in right place.
I have many subassemblies and I'm planning to write macro that automatically generates Mainassembly. Each subassembly has its origin in the same place as in the mainassembly, because I have used layout sketches.
When manually inserting subassembly to main assembly it will automatically take its place in main assemly, because origin are coincident and planes are paraller with main assembly.
OK. Now I have a problem with macros. AddComponent function asks coordinates of the component center not coordinates of the component origin.
Should I mate origin with addMate function in my macro or is there any easier way to solve this problem. I would like to generate final assembly without mates, just fix components when they are in right place.






RE: Macro that generates assembly
Eric