convert linked cad to import

convert linked cad to import

kirsch33
Contributor Contributor
1,032 Views
1 Reply
Message 1 of 2

convert linked cad to import

kirsch33
Contributor
Contributor

Hi, 

 

I am looking to mimic the import function that you can perform on linked CAD files thru the Manage Links dialog. What I mean is, if you link a CAD file and have it placed in a view, within the CAD Formats tab of the Manage Links dialog, when you select your link, there is an button available labeled "Import". This will convert the linked CAD instances to imported CAD links instead. See attached screenshot for reference.

 

Is this function available via the API? If not, what would be the easiest way to accomplish this? I am thinking now to use the Create function of ImportInstance with the same file path and then attempt to relocate the new ImportInstance to the correct location in each of the views it was within. However this will make retaining any overrides difficult.

0 Likes
1,033 Views
1 Reply
Reply (1)
Message 2 of 2

scgq425
Advocate
Advocate

Hi   kirsch33:
May be , read the link dwg record  about : location , transform , and then delete this dwg , then  use the importinstance function to impoert the same dwg file . but if the familyinstance has align property with link-reference , will post the error , so u can try this idea and debug it.

LanHui Xu 徐兰辉
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

Blog
LinkedIn
Revit/CAD Development | Steel Product Manager

EESignature

0 Likes