Move or Copy

Move or Copy

Anonymous
Not applicable
202 Views
1 Reply
Message 1 of 2

Move or Copy

Anonymous
Not applicable
Hi all

How can i implement the autocad move and copy commands in ObjectARX.sample code please.

regards
reg
0 Likes
203 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
AutoCAD command you can implement with

acedCmd() like in the sample:

face=Arial size=2>


   rb.restype = RTSHORT;
   rb.resval.rint =
0;
   acedSetVar("CMDECHO", &rb);

  struct resbuf
*cmdlist;
  ads_point pkt;
  pkt=1.5;
 
pkt=7.0;
  pkt=0.0;
  cmdlist = acutBuildList(RTSTR,
"._-boundary",
                                    
RTSTR, "_a", RTSTR,
"_o",
                                    
RTSTR, "p", RTSTR,
"_i",
                                    
RTSTR, "j", RTSTR,
"",
                                    
RT3DPOINT, pkt, RTSTR, "", 0);
  acedCmd(cmdlist);
 
acutRelRb(cmdlist);

 

look at ARX Help for more

 

Bernd


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi
all

How can i implement the autocad move and copy commands in ObjectARX.sample
code please.

regards
reg

0 Likes