I checked the macro which you have attached and found that you are adding reference plane with constraints to single entity. In such a case, the parameter for second and third entity in InsertRefPlane() API should be 0. Thus, in all your InsertRefPlane() commands, make all the last 4 parameters as 0 and your macro shall work fine.
Since the second constraint parameter is not marked to 0, SW tries to find the second reference entity in the selection list (the second entity is the one selected with mark 2). Since the entity is not found, SW returns an error "Objects disconnected from clients".
Please find attached the updated macro.
Hope it helps!!!
MacroNew.swp.zip 19.9 KB
Thanks a lot for Your reply, Rajat !
I started the macro, that you attached, but there still occurs the previous error. And to notice, before command InsertRefPlane(), I do select two entities ("EDGE" and "FACE").
Tried to use your advice, changed all 4 last parametres to 0, but error remains the same.
Do you have any suggestions?