Agree with @WrightEngineering
Thanks Ken for sharing. That was a great example how to add the command in the correct flow And I think it also gives us the possibility to sen additional information to the command line
Is there a way to send an object to the command line within a command? I am trying to run the xclip command based on this post.
The inputs would be as follows:
- âxclipâ + â\nâ (Initiate Command)
- Select xrefs â\nâ (I donât think this can be input as a string, needs to be the objects)
- âNâ + â\nâ (New Boundary)
- âSâ + â\nâ (Select Polyline)
- Select Polyline â\nâ (Select polyline object, I donât think this input can be a string either)
There are two inputs to get through the xclip function that cannot be strings as far as I can tell. How would I need to go about passing those through the command line? I would prefer to use python if possible.

Did you try Camber package node âDocument.SendCommandâ?
@hestingjj EDIT: ohhh I just realized this is a month old post, anyway if it has not been solved yet, maybe this helps.
I donât know if object can be fed as selection, as a workaround try xclip âAllâ or unload the xref you donât want to clip and xclip âCPâ and add the boundary polygon vertices coordinates as string input.
"xclip"+" cp "+rectangular+"\n"+"N"+"\n"+"P"+"\n"+rectangular+"\n";
the coordinates input form:
"584309.354,95027.656 585577.751,95027.656 585577.751,93720.350 584309.354,93720.350 "
I added two spaces to the end. The new lines are sometimes tricky for me, but this way it worked.

Hi @zachri.jensen where can I find the node in camber package
If you donât see it, you likely need to update Civil 3D. Make sure you have the latest updates installed for Civil 3D 20XX.
Is there a way to use SendCommand when working with an External Document?

No, sorry.
This is a great little node. Is there a way to do the opposite? Getting the command line output into a watch node in dynamo would be great, not to mention all the other things you could chain together from there if you were âtalkingâ to the command line the old fashioned way.
