• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Mentor
    jdkriek
    Posts: 263
    Registered: ‎03-29-2007

    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
    Inventor Applications Engineer
    Autodesk Inventor Certified Expert
    Microsoft Certified Application Developer
    _____________________________________________________
    Did I help you? Please choose Accept as Solution or Kudos below
    Please use plain text.
    Member
    Posts: 4
    Registered: ‎11-29-2007

    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?

    Please use plain text.
    Active Contributor
    andrewwhiteinc
    Posts: 50
    Registered: ‎02-02-2011

    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,EIT
    Engineer-in-Training, Industrial Automation
    Please use plain text.