How can I unload a CADLinkType element?

How can I unload a CADLinkType element?

Anonymous
Not applicable
682 Views
3 Replies
Message 1 of 4

How can I unload a CADLinkType element?

Anonymous
Not applicable

I've been looking for a way to download a CADLinkType link with no result.
I have three links loaded and would like to unload and reload them through the API, but the CADLinkType class does not include any method to unload the link without having to remove the element.

 

I appreciate your help.

0 Likes
683 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Explore your model using RevitLookup, unload them manually, and observe what happens in the database. Reproduce the same modification programmatically, e.g., using doc.Delete. Maybe.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

Thank you so much

I used Revit Lookup a lot and following your advice, check the DB to identify the changes when unload a CADLinkType manually.

The only changes that are reflected are in the BoundingBox and Category properties, which changes to Null.

The Category is read only and I could not modify the parameter.

I am currently trying to put null BoundingBox, because at least this property is not read only.

As soon as I have a solution, I'll share it with you.

0 Likes
Message 4 of 4

sebastien_blaes
Explorer
Explorer

As the same I search...

Unload Revit link works, delete Revit link or DWG link works too.

 

But, unload all the DWG link... I doesn't find how to done this.

It's just to automate when sending Revit file to customers.

 

If I found something I'ill wrote it

0 Likes