Hello Sea.heaven
searching web i found the EXTRIM.LSP in web address https://github.com/Manenpren/autolisp-utilerias/blob/master/extrim.lsp
It contains an "extrim" command.
Testing the command using autocad command line i show that running the routine , asks for objects. In addition i can't undertand how it works.
In my post i determined that i need a routine that works with two objects found on a layer.
The One is Clipper and the other the Clipping object.
The layer sould be constant layer or a layer name routine asks for.
If the layer exists and the two proper objects lay on layer exist , the command is completing the clipping work.
The reason i want this , is that my ability to clip a blockref object for example , using the autocad ole object servises is to execute a command using the "SendCommand" method of document object.
If a lisp command asks for string or integer number or real number or boolean maybe the variables sould be passed as strings. But if lisp routines asks user for objects selection on screen, there's a problem. For example ::: Let MyBlockRef be an OleVariant (an Ole Object) wich was created using ole server and using "insert" ole method. If i want to clip it , it sould exist an ole method MyBlockRef.Clipit(aClipperPolylineVariable) where aClipperPolylineVariable sould be a 2d Polyline object on model space or an array variant of 2d points. Unfortunattely "MyBlockRef.Clipit" method is not supported.
So, I have to use just a call to a lisp command that asks only for string or numbers ... etc.
To insert an entity using string or numbers, there are not many ways.
First way is to pass the object's handle that is a unique <<ID>> , number for lisp, string for ole objects (MyObject.Handle). Maybe it works but i never tryied because my lisp language knowledge is extremelyy poor, and of course if i am too old aged man to learn lisp. If covid will let me alive, i'll do it. It's not easy, because i spent my life making millions of codes using Pascal (delphi).
Second way is to put the objects the routine needs on a temporary layer used to run the routine discovering the objects on it.
I think i clearified the whole problem.
Regards,
Gery.