1 Answers
A:
Use Custom iProperties (Simple Metadata Storage)
Inventor documents support custom iProperties, which are ideal for storing small text data like tags, GUIDs, or configuration flags.
Writing iProperty in VC++ (via COM):
CComPtr<Inventor::Document> pDoc = ...; // Get active document
CComPtr<Inventor::PropertySet> pPropSet;
HRESULT hr = pDoc->PropertySets->Item(CComVariant("Inventor User Defined Properties"), &pPropSet);
CComPtr<Inventor::Property> pProp;
try {
pPropSet->Add(CComVariant("MyTextData"), CComVariant("Hello from VC++"), CComVariant("MyCustomProp"), &pProp);
} catch (...) {
// If already exists, update it
pPropSet->Item(CComVariant("MyCustomProp"), &pProp);
pProp->PutValue(CComVariant("Updated Text"));
}
Find the Best CAD Software
Explore all products with features, pricing, reviews and more
View All SoftwareHelp the community
Be the First to Answer these questions
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.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers