Hi,
I’m trying to retrieve the DR01.dwg file (unlinked) from a file.
I managed to find the name and category names of this file.
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
instance=UnwrapElement(IN[0])
doc=instance.Document
scat=instance.Category.SubCategories
lname=[doc.GetElement(c.Id).Name for c in scat]
OUT = instance.IsLinked,instance.LookupParameter("Nom").AsString(),type(doc.GetElement(instance.GetTypeId())),lname
Do we have to do a DWG export of all the objects belonging to these categories? I looked before posting.Perhaps there is an easier approach.
Thank you in advance.
Sincerely,
Christian.stan

