ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

acedcommand -hatch scale

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
522 Views, 2 Replies

acedcommand -hatch scale

hi, everyone,  recently, I want to draw some hatches by command "-hatch",

acedCommand(RTSTR,_T("-HATCH"),RTSTR,_T("p"),RTSTR,_T("solid,O"),RTREAL,1.0,RTSTR,_T("0") ,RTSTR,_T("s"),RTPICKS,ssName,RTSTR,_T(""),RTSTR,_T(""),0);

 I don't quite understand what "solid,O" mean, but it works.  the code generated a hatch with the scale "1.0" .  

but I query the hatch properties by the property panel,  the hatch name is "solid,O",  I believe it should be "solid".

 

but if I remove ",O",  like the code below,   it does not work.

acedCommand(RTSTR,_T("-HATCH"),RTSTR,_T("p"),RTSTR,_T("solid"),RTREAL,1.0,RTSTR,_T("0") ,RTSTR,_T("s"),RTPICKS,ssName,RTSTR,_T(""),RTSTR,_T(""),0);

2 REPLIES 2
Message 2 of 3
Balaji_Ram
in reply to: Anonymous

Hello,

 

Sorry for the delay.

 

You may want to check the available hatch pattern names by using the "-hatch" command and in the hatch pattern name, get a listing using "?" and "*".

 

In the list of hatch pattern names, is "solid" available ?

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
nick83
in reply to: Balaji_Ram

sounds like a joke. scale for SOLID hatch 🙂

try to use

for solid hatch use:

acedCommand(RTSTR,_T("_HATCH"),RTSTR,_T("SOLID"),RTENAME,ent,RTSTR,_T(""),0);

another hatches: 

ACHAR tText[33]; // hatch name

ads_real hScal; // hatch scale

acedCommand(RTSTR,_T("_HATCH"),RTSTR,tText,RTREAL,hScal,RTSTR,_T("0"),RTENAME,ent,RTSTR,_T(""),0);

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost