Inventor General

Posts: 212
Registered: ‎04-20-2012
Message 1 of 1 (334 Views)

Edit part iproperties from drawing using VBA maco

334 Views, 0 Replies
06-05-2012 05:57 AM

Could anyone help me with this. I found a macro which can edit the drawings iproperties, so I'm guessing it'd only be a matter of pointing the macro at the part instead of the drawing. Thanks


Function Fill_In_Checked_By(ByVal name, ByVal dt) As Boolean

' Get the active document.
Dim invDoc As Document
Set invDoc = ThisApplication.ActiveDocument
' Get the part number property.
Dim invPartNumberProperty As property
Set invPartNumberProperty = invDoc.PropertySets.Item("Design Tracking Properties").Item("Checked By")
invPartNumberProperty.Value = name
Set invPartNumberProperty = invDoc.PropertySets.Item("Design Tracking Properties").Item("Date Checked")
invPartNumberProperty.Value = dt

End Function


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor