Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ipart with ilogic in an assembly file

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
664 Views, 5 Replies

Ipart with ilogic in an assembly file

My question, how would I use Ipart in an assembly.iam prompting me for a unique name and destination folder (directory). So basically, our engineering files (drawings) have part numbers: plate sets (011-1234), weldment (004-1234). The plate set drawing (011-1234) has several plates of various sizes and features; these plates make up the weldment drawing (004-1234). These drawings reside in a unique directory e.g. 1750. I am wanting to use Ipart e.g.(plate.ipt), but prompt the user for a unique name & destination when inserted into an assembly.iam; subsequent placements would use the last prompted info e.g. (011-1234-01) and destination. Obiviously the -01, -02 is iterations of (plate.ipt) Ipart placed. I know that iproperties i could have given info regarding "part number"; but this part number will be unique, so I don't know if applying ilogic in the Ipart (plate) or in the new assembly.iam?

5 REPLIES 5
Message 2 of 6
Curtis_Waguespack
in reply to: Anonymous

Hi @Anonymous , 

 

I wasn't able to follow what you're after, but in general mixing ilogic and iparts is used just automate the configuration of an assembly with standard members of an ipart table.... it sounds to me as if you're looking to generate "custom" sized/named components ... in which case I would think that ditching iparts and doing it all with ilogic ( or more specifically with customization via the API) would be the better approach.

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

Message 3 of 6
johnsonshiue
in reply to: Anonymous

Hi! I am also confused. Like Curtis mentioned here, you can use iLogic rules to alter (not drive) iPart/iAssembly members. It is not a good workflow to drive iPart/iAssembly factory. iPart/iAssembly member definition should be all driven by the table, not from other sources including iLogic.

Please share an example that you are working on. Forum experts can help take a look and suggest better workflows.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 4 of 6
Anonymous
in reply to: johnsonshiue

Thanks for your responses...

 

I did try the other inventor customization forum, no response. 

 

I hope this clears things up...

 ipart.JPG

 

location of Iparts

destination.JPG

 

Change file name and destination thru ilogic forms?

placement.JPG

 

Sample directory with our part number structure 

directory sample.JPG

I could just repeat the clicks to obtain the directory I need to save the files in... but would be nice to have it prompt the user and remember last entries... part number and destination.

Thanks,

Brian

Message 5 of 6
johnsonshiue
in reply to: Anonymous

Hi! Like I mentioned, iPart/iAssembly are designed to create library components. It sounds like you want to customize the table and drive the table using rules. I don't think there is a good workflow to do that. One thing you can consider is to use Custom iPart (right-click on one of the column -> check Custom Parameter Column). In this way, when you insert the iPart to an assembly, you can give a new file name.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 6 of 6
Curtis_Waguespack
in reply to: Anonymous

Hi @Anonymous 

 

No response on the Customization Forum often means the question was too broad and/or general... you're speaking to a programming focused audience there, so often it's best to ask more targeted programming code related questions  (so not how do I do ______?,  but instead how do I get this snippet of code I found to work for _______?)

 

But anyway, after looking at your example, this is what I thought you were after.... and I while I understand that it seems like the right approach, from experience I’m saying (I’m 90% sure without double checking) that ilogic just does not have access to the custom iParts interface, and therefore the road you're own dead ends rather abruptly.

 

As I said previously, the ilogic + iparts workflow is very limited and basically just automates the selection of predefined ipart members from the ipart table, and swaps them out for other predefined members.

 

That's the bad news, but the good news is that you can do everything that the iPart table does and more with iLogic (and customization via the API using the iLogic editor) so that you will not need iParts.

 

So the question I think you're really wanting to ask is how to place a component in an assembly and save it with a predefined  file and folder structure... and the answer(s) to that will be found on the Customization Forum, but I think you will have to ditch iParts and dig in a bit deeper so that you can ask a more targeted set of questions.

 

Maybe this example will help you get started in that direction:

https://forums.autodesk.com/t5/inventor-customization/custom-ipart-with-user-entry-form/td-p/7562362

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report