I am looking to automate the descent of a part in assembly. Today, manually, I do like this:
- In assembly A, lower a part B (originally attached) into a subassembly C;
- Fix C at the origin
- Name C as B (bonus, copy $PRP:"number" and $PRP:"description")
- Save B as an external file.
I have very little experience with macros and, first, I would like to ask you the question of feasibility.
To understand my approach: the general goal is to obtain an assembly containing a structure (the part) that is always particular, and to bring back standard fastening elements (library parts). I work on steel structures in large assemblies (civil engineering), and inherit structural parts through a body registration function from a "schematic" part.
We have set up keyboard shortcuts for that. When we are in a part we press ctrl-a then there it integrates into an asm and when we do ctrl-w we can import a part into the ASM.
Cobra, thanks for the tip, but I'm looking to stay in Assembly A at all times.
Stefbeno, to provide you with more details:
Situation S1:
A.asm contains B.prt. B.prt is originally fixed. A and B are generated by a command to register bodies, from a room A'.prt containing body B'. C.asm does not exist.
Situation S2:
In A.asm, C.asm replaces and contains B.prt. C.asm has the same name and properties as B.prt, and is also originally fixed to A.asm.
There is no need to manage constraints since parts and assemblies are always fixed at the origin.
Yes, it works and that's how I do it now. This is a task I do often and I am simply looking to reduce the number of clicks. I wanted to know if there was a way to go faster by automating the thing.