Importing CAD file with Metadata and accessing it with maxscript

Importing CAD file with Metadata and accessing it with maxscript

j.a.m
Explorer Explorer
425 Views
2 Replies
Message 1 of 3

Importing CAD file with Metadata and accessing it with maxscript

j.a.m
Explorer
Explorer

Hello 3ds Max Community!

 

I'm creating an automated pipeline where I need to import CAD file in 3ds max (STP/STL/SLDPRT/...), and export certain data from the objects. One of the important items is to read is the objects' Metadata fields or Custom Properties that were added in AutoCAD/Revit/...,  as "Metadata".

At the moment, I can't find any object property (among User Defined Properties buffer, Appdata fields, or any other props from "GetPropNames" list), that could contain these Metadata fields.

 

Can anyone advise if there is a way to access the Metadata anyhow inside 3dsmax with maxscript or read it by any other alternatve method?

 

Thanks.

j.a.m

0 Likes
426 Views
2 Replies
Replies (2)
Message 2 of 3

Swordslayer
Advisor
Advisor

Either try exporting as FBX (it supports NURBS and custom attributes) or make a script that saves the properties to a custom format on the ACAD/Revit side and use it after importing to assign the properties to the models again. If you're not in control of the data, you're out of luck (especially if you only have STL which doesn't carry along any scene/model data at all).

0 Likes