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);
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
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);