Hello
I want to use a program either ilogic or vba that would be contained in an .iam file:
-convert my Premier iam to step
-open the step with Inventor (this removes the drawing problems I would have had with my first assembly) which creates a .iam
-open this second iam in drawing
I would like from the first assembly to save the second one and then close it without the user having to do anything, I can already convert open but the problem is that the Thisdoc.save only applies to the document that contains the rule, and I can't write a rule on the second assembly because it will be deleted if the user modifies the first one assembly.
My final goal being from an assembly that contains variable parts (here the first one) to create your plan that changes with the part.
PS: I attach the bug caused if I directly insert my first assembly in drawing.
sans_titre.jpg
Hello, the purpose of the procedure is to create a plan that follows the changes to the room? I have a bit of trouble understanding the "why" of automation
1 Like
In fact, the goal is that the user is not every time he uses a different part of the family (longer, narrower etc...) to redo the part and the drawing.
With the program I want to make, it just has to enter the parameters of the desired room, it changes automatically and its drawing also represents a fairly significant time saving.
Hello
I didn't know that it is possible to include VBA code in an IAM, because for SolidWorks it is impossible!
I didn't quite understand the purpose of converting it to a STEP, can't we save the IAm file under another name?
The conversion to STEP makes the assembly lighter, and avoids the bug that I attached to the subject, namely the drawing almost cuts my part in two.
So a priori it's not possible!
Why not use a VBA macro that would be outside the Inventor file?
Why not investigate the bug in question further? Is it the latest version of Inventor available that is installed?
I just wanted to avoid using a program other than inventor but if it's necessary.
Yes indeed Inventor Pro 2015, I am only an intern so my knowledge of the software is limited to 1 month but the engineers with me have never had to deal with this bug, so I looked for a way to get around this bug.
I think you are making it very difficult for yourself, the purpose of CAD software like Inventor or Solidworks is to link the part to the plan, so to directly reflect the changes related to it.
Inventor user for 6 years, I've never seen this kind of bug, have you tried downloading a service pack?
Could you send me this part that I'm testing this bug?
Finally, with a part family configuration, it is possible to simply enter the data into the iParts management table.
@PL, it is indeed possible to use VBA in an IAM document as well as so-called iLogic code, basically simplified VB.
Yes I am aware of it but if I take the original assembly there is always a problem.
Either my piece is cut, or elements become invisible... while on my assembly everything is well displayed...
That's why I make it difficult for myself.
Unfortunately I can't give you the assembly because it's confidential... and moreover given the number of pieces it contains it would have taken a while.
Ouch
What about the service pack? These are the Inventor updates, maybe your problem comes from a general bug...
Does this beug exist even with the layout of a simple part, like a cube? Or only with this blend?
Assembly includes iParts?
Without really understanding the problem, I unfortunately can't do anything for you...
Hello
Finally I found a way to get around this bug.
I simply used a simple derivation function of my assembly, it gives me an ipt that does not bug on the drawing and reloads with each documentuptade().
On the other hand, for the bug I didn't find the solution.
Thank you for your answers.