cadlink.Reload(CADLinkOptions)__PreserveOverrides

cadlink.Reload(CADLinkOptions)__PreserveOverrides

rodrigohbm
Advocate Advocate
512 Views
2 Replies
Message 1 of 3

cadlink.Reload(CADLinkOptions)__PreserveOverrides

rodrigohbm
Advocate
Advocate

Hello friends
you can control the option (view image)

PreserveOverrides when it recharges the cadlink?

 

regards

 

 

Using t As New Transaction(doc, "Reload Imports")
    t.Start() 
        Dim cadLink As Autodesk.Revit.DB.CADLinkType = TryCast(doc.GetElement(typeId), CADLinkType)             
            cadLink.Reload()
    t.Commit()
End Using

 

image.png 

0 Likes
Accepted solutions (1)
513 Views
2 Replies
Replies (2)
Message 2 of 3

FAIR59
Advisor
Advisor
Accepted solution

You have to use the 2nd overload of the Reload method:

			CADLinkOptions opt = new CADLinkOptions();
			opt.PreserveOverrides=true;
			cadLink.Reload(opt);
0 Likes
Message 3 of 3

rodrigohbm
Advocate
Advocate

Thank you.
to vb.net work in the following way.

 

Dim opt As New CADLinkOptions(False, typeId )    
 cadLink.Reload(opt)

 

regards

0 Likes