Design Assistant and VB

Design Assistant and VB

Anonymous
Not applicable
1,643 Views
16 Replies
Message 1 of 17

Design Assistant and VB

Anonymous
Not applicable
We take a drawing and the associated part file and copy it to a new location then use Design Assistant to rename the drawing and then rename and re-path the part to the new drawing. This allows us to have a stock basic part with all the dimensions already in place.

Is it possible to use VB to drive the Design Assistant to process these tasks? If so some sample code would be helpful. Or is Design Assistant even needed to do this if using VB?

Thanks in advance for any assistance with this.

Allen
0 Likes
1,644 Views
16 Replies
Replies (16)
Message 2 of 17

Anonymous
Not applicable
Just did a large project in VB, where I copy a lot of idw, iam, ipt, ipn's. Í have attached the frm. Don't know if it's the right way to do it, but i works and that the main thing for me... Find the sub Ny_ref, it's here i'm replace the refenrence. LAsse "AllenG" skrev i en meddelelse news:32261431.1095175404286.JavaMail.jive@jiveforum1.autodesk.com... > We take a drawing and the associated part file and copy it to a new location then use Design Assistant to rename the drawing and then rename and re-path the part to the new drawing. This allows us to have a stock basic part with all the dimensions already in place. > > Is it possible to use VB to drive the Design Assistant to process these tasks? If so some sample code would be helpful. Or is Design Assistant even needed to do this if using VB? > > Thanks in advance for any assistance with this. > > Allen Attachment not added (content type not allowed): "Rename.frm"
0 Likes
Message 3 of 17

Anonymous
Not applicable
thx Lasse, The attachment didn't come thru, please e-mail to design_inventor@hotmail.com
0 Likes
Message 4 of 17

Anonymous
Not applicable
Lasse,

I also am trying to find a way past the design assistant within VB - doing the exact same thing you have done. Could you please e-mail me the form as well at: mhwood@cleecook.com.

Thanks,
0 Likes
Message 5 of 17

Bronislav.Simunek
Enthusiast
Enthusiast
LAsse,
I would like to ask you for the mentioned form with code as well. Creating the whole app seems to be the only workaround to get to the events in DA :-(.
TIA
Bron
0 Likes
Message 6 of 17

Anonymous
Not applicable
COULD YOU SEND ME THE CODE YOU REFER TO
THANKS IN ADVANCE
0 Likes
Message 7 of 17

naresh_kalyan
Advocate
Advocate
Dear Lasse,
Could you plz send the code to naresh_kalyan@sify.com
Thanks in advance.

NKalyan
0 Likes
Message 8 of 17

Anonymous
Not applicable
Sir it looks like your the man, I just found your post to AllenG.
Apparently you have written a VB routine to bypass the design assistant. Could you send me a copy of the code at alex.templeman@gmail.com or have you put it some place I could down load it?

Thank you in advance!!
0 Likes
Message 9 of 17

Anonymous
Not applicable
Hi Lasse, I have large projects also as you mentioned. This macro sounds great could you please send me the form code too. Thank you so much in advance. email: tim.dench@leggett.com
0 Likes
Message 10 of 17

Anonymous
Not applicable
I do the same thing ,could you give me some code ?weiweiduoduo@hotmai.com
cheers.
weiwei
0 Likes
Message 11 of 17

Anonymous
Not applicable
I've been searching for 40 hours for this solution. Could someone also send the attachment to markkonst@hotmail.com??

Thanx in advance,
Mark
0 Likes
Message 12 of 17

Anonymous
Not applicable
I've been searching for 40 hours for this solution. Could someone also send the attachment to markkonst@hotmail.com??

Thanx in advance,
Mark
0 Likes
Message 13 of 17

shastu
Advisor
Advisor

I would like to see it as well.  shastu@bradburyco.com

0 Likes
Message 14 of 17

MechMachineMan
Advisor
Advisor

I kind of wish I was ambitious enough to monetize my macros.

 

Definitely have a renamer that renames associated drawins/ipns/assemblies and retains references.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 15 of 17

niranjan934
Contributor
Contributor

Iam also for this code. Could you Please share the code for this Mail : addagatlaniranjan301@gmail.com

0 Likes
Message 16 of 17

mseveroLXMQ8
Participant
Participant

I'd love this code to. Please email to: msevero@silent-aire.eu.

 

Thanks

0 Likes
Message 17 of 17

NachoShaw
Advisor
Advisor

you all have access to the Inventor SDK toolkit that has tool examples and source code. you can find them here

C:\Users\Public\Documents\Autodesk\Inventor 2022\SDK\

 

As for what you are trying to do, look here

C:\Users\Public\Documents\Autodesk\Inventor 2022\SDK\UserTools\CopyDesign\Bin

 

You browse to the design (Assembly or drawing), rename it, optionally add a prefix to the copied files and a new version is created. I used the code on a project and it did exactly what i needed.

 

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.