Inventor Customization

Inventor Customization

Reply
*Expert Elite*
jdkriek
Posts: 545
Registered: ‎03-29-2007
Message 11 of 13 (168 Views)

Re: Change reference .ipt from .idw

07-26-2012 04:47 AM in reply to: jis.augustin

jis.augustin, you are responding to a question that is 7 years old.

Jonathan D. Kriek

Autodesk Inventor Certified Expert
Microsoft Certified Application Developer
_____________________________________________________
Did I help you? Please choose Accept as Solution or Kudos below
Member
jis.augustin
Posts: 4
Registered: ‎11-29-2007
Message 12 of 13 (157 Views)

Re: Change reference .ipt from .idw

07-26-2012 05:15 PM in reply to: jdkriek

do you have a better solution by any chance?

Valued Contributor
andrewwhiteinc
Posts: 65
Registered: ‎02-02-2011
Message 13 of 13 (142 Views)

Re: Change reference .ipt from .idw

07-27-2012 07:34 AM in reply to: jis.augustin

The command you are looking for I believe is:

 

dim oDoc as DrawingDocument

Set oDoc = ThisApplication.ActiveDocument 'provided your active document is an .idw

Call oDoc.Sheets(1).DrawingViews(1).ReferencedDocumentDescriptor.ReferencedFileDescriptor.ReplaceReference("C:\Path\Part.ipt") 'set the sheet number to the page and the drawing view number to the base view (typically 1)

P. Andrew White, P.Eng
Manufacturing Engineering Manager
Silent-Aire Manufacturing
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.