How I can load (Insert) a Rhino-file with c# in the document


#1

I want Insert Rhino file in my document and use it as a block

I do this in Python like this it works. Hhow I can do it with c#

rs.Command("-_Insert _File=_Yes LinkMode=Embed C:\unroll-kalzip\Block_s\Kon_Next_III.3dm _Block 0,0,0 1.0 0.0")
bl_01 = rs.FirstObject()

Robert


(Steve Baer) #2

Your C# command needs a command style attribute of type scriptrunner

[Rhino.Commands.CommandStyle(Style.ScriptRunner)]
public class MyCommand : Rhino.Commands.Command {
...
}