How does one Insert a Design sketch or body or component from one drawing file into another Design drawing file, Similar to Insert Block in the Old Autocad?

How does one Insert a Design sketch or body or component from one drawing file into another Design drawing file, Similar to Insert Block in the Old Autocad?

tperam
Advocate Advocate
703 Views
3 Replies
Message 1 of 4

How does one Insert a Design sketch or body or component from one drawing file into another Design drawing file, Similar to Insert Block in the Old Autocad?

tperam
Advocate
Advocate

How does one Insert a Design sketch or body or component from one drawing file into another Design drawing file, Similar to Insert Block in the Old Autocad?

 

(a) using API Preferably C++
(b) using UI Pull down menus.

 

When I Copy or Cut from one design drawing file window Fusion 360 has no Paste option in a new design drawing file window.


Regards,
Thurai

 

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

PinRudolf
Advocate
Advocate

Unfortunately the drawings API is not yet available. (Though it is hinted that it is in development, we might see new drawing api features coming next year?) This limits what you can do and I don't think you can place sketch items yet.

 

You might have better luck using the text commands, though I'm not sure if there are any for this purpose.

@kandenntimade a great post about this subject; check it out here. He also posted a list of available commands here. I gave it a quick look but could not find anything about adding sketches.

 

 

 

Message 3 of 4

kandennti
Mentor
Mentor

Hi @tperam .

 

I've never used AutoCAD, so I don't know how it works.

I remembered that there is this command in TextCommands.

https://github.com/kantoku-code/Fusion360_Small_Tools_for_Developers/blob/master/TextCommands/TextCo... 

 

Even before the sketching feature was implemented in Drawing, I was able to use "FusionDoc.ExecuteAcadCommand" to draw lines.

( You could even save the drawn line to a file.)

 

You may also be able to use the desired command.

If it works, it would help others if you could leave a note.

 

 

@PinRudolf .Thanks for the introduction.

Message 4 of 4

tperam
Advocate
Advocate

Thanks Kandennti and PinRudolf for responding.

 

Regards,

Thurai

0 Likes