linkedin
Q:

How can I tell if a dimension in a drawing was retrieved from the model or created manually?

  • Joy
  • Mar 29, 2026

1 Answers

A:

Yes, you can detect whether dimensions in a drawing were retrieved from the model (IPT file) using the Inventor API. Here's how to do it:

Sample Code: Check if Dimension Was Retrieved


Dim oDrawingDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = oDrawingDoc.ActiveSheet

For Each oDim As GeneralDimension In oSheet.DrawingDimensions.GeneralDimensions
    If Not oDim.RetrievedFrom Is Nothing Then
        Debug.Print("Dimension '" & oDim.Text.FormattedText & "' was retrieved from model.")
    Else
        Debug.Print("Dimension '" & oDim.Text.FormattedText & "' was manually created.")
    End If
Next

This lets you:

  • Identify dimensions linked to the model (IPT)
  • Filter out manually created dimensions
  • Optionally tag or style them differently
  • Manisha
  • Mar 31, 2026

0 0

Related Question and Answers

Q:

A:

HANDBRAKE is one of the most popular and free video conversion tools.

It is open source, easy to use, and works on Windows and Mac.

  • Mir Hussain
  • Mar 25, 2026

A:

Sheets in Inventor are named using the Sheet.Name property. By default, they follow a simple pattern:

  • Sheet1, Sheet2, etc.
  • You can rename them manually or programmatically using:

sheet.Name = "Assembly Overview"

You can delete sheets using the Inventor API or iLogic. Here's a VB.NET-style snippet that safely deletes all sheets except the first:


Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheets As Sheets = oDoc.Sheets

' Delete all sheets except the first one
Do While oSheets.Count > 1
    Dim lastSheet As Sheet = oSheets.Item(oSheets.Count)
    lastSheet.Delete()
Loop
  • Nitin parate
  • Mar 30, 2026

A:

No, Apprentice Server cannot export Inventor part files (*.ipt) to formats like SAT, IGES, or STEP.

  • Satish Kumar
  • Mar 30, 2026

A:

Recommended Steps

  1. Ensure All Changes Are Saved
    
    ' After updating properties
    oDoc.Save()
    
  2. Force Update of Drawing Views
    
    oDrawingDocument.Update()
    
  3. Use Inventor's Built-in DWF Export
    
    oDrawingDocument.SaveAs("C:\Path\To\File.dwf", True)
    
  4. Verify Property Source in Title Block
    • Open the title block definition.
    • Check if the field is pulling from <Current Drawing> or <Primary Model>.
    • If it's <Primary Model>, ensure the model file is updated and saved.
  • Date Restaurant
  • Mar 24, 2026

A:

The Permission Denied error when using FileSaveAs in Inventor, especially via the Apprentice API, can be caused by several factors. Here's a breakdown based on Autodesk documentation and community insights:

Here are some of the common causes of FileSaveAs permission denied:

  1. File Needs Migration
  2. File Is Read-Only or Locked
  3. Insufficient File System Permissions
  4. Incorrect Use of FileSaveAs
  • Pritesh
  • Mar 31, 2026

Find the Best CAD Software

Explore all products with features, pricing, reviews and more

View All Software
img

Have a Question?

Get answered by real users or software experts

Ask Question

Help the community

Be the First to Answer these questions

How can I set the same Description iProperty on all .ipt files in a folder using VBA?

Write Answer

How can I alphabetically sort components in the assembly browser using Inventor’s UI?

Write Answer

How do you change the referenced model of a base view in an IDW drawing programmatically (similar to “Replace Model Reference” in the UI)?

Write Answer

How can I detect when the user triggers a Vault check-in from Inventor?

Write Answer

Still got Questions on your mind?

Get answered by real users or software experts

Disclaimer

Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers