Copy drawign when placing part from content center

Copy drawign when placing part from content center

xavi.saus
Contributor Contributor
366 Views
5 Replies
Message 1 of 6

Copy drawign when placing part from content center

xavi.saus
Contributor
Contributor

Hello

 

I would like an ilogic rule (or way) to do the following. When placing part from the content center, check if there is an associated drawing to the family, place the part (with custom parameters, e.g. length, width, etc), copy the drawing, rename it to the generated part and replace the model. If the generated part already exists, check if the new drawing exists and create it.

 

Thanks

0 Likes
367 Views
5 Replies
Replies (5)
Message 2 of 6

fidel.makatiaD5W7V
Alumni
Alumni

Hi @xavi.saus  have you checked the inventor docs

Inventor 2022 Help | Place Content Center Parts | Autodesk

you will find useful methods in VBA that will enable you to do this



Fidel Makatia
Developer Advocate

href=https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-0BD48573-7193-4285-87B7-6727555D053E rel= "noopener noreferrer">Inventor 2022 Documentation |
0 Likes
Message 3 of 6

A.Acheson
Mentor
Mentor

If you are placing this part manually a trigger for the rule would need to be run manually or on save to check for a drawing matching the file name/description. I don’t believe there is an iLogic event that can watch for the placement of this part from CC. This would be add-in territory. Searching for a drawing would also be resource intensive so would need to happen in the background. 

Will the CC part always be place manually by the user? 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 4 of 6

xavi.saus
Contributor
Contributor

Hello @A.Acheson 

Yes, CC files will be placed manually into assemblies through "place from content center".

0 Likes
Message 5 of 6

A.Acheson
Mentor
Mentor

Placing manually from CC, watching this event and then searching for a drawing would likely need an addin if it is possible at all. This would require greater expertise than most forum user can offer including myself so to simplify I would suggest to trigger any type of search for the drawing manually or on save of the assembly. Where do you save currently the drawings for CC parts? Are you using vault? If you can screenshot what currently links the part to the drawing at the moment and or supply a sample cc part and drawing in a zipped folder.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 6 of 6

xavi.saus
Contributor
Contributor

Hello @A.Acheson 

 

All content center files are saved on a folder in the server. Each family has its own folder. At this moment I have no drawing created yet, but the idea is create a Template drawing on the same folder and use it to generate the drawings for all the created parts, saving it on the same folder, so I will have:

 

Template (naming can be changed if needed)

CM000001-001-XXXX-XXX.ipt

CM000001-001-XXXX-XXX.idw

 

Generated part + drawing:

CM000001-001-1000-250.ipt

CM000001-001-1000-250.idw

0 Likes