.NET

Reply
Active Member
7 Posts
0 Kudos
Registered: ‎08-30-2007
Post 1 of 3

Hatch pattern scale problem

189 Views, 2 Replies
08-30-2007 08:11 AM
The following is a part of my code that draw a Polyline with a hatch style, but, I am having some troubles with the pattern scale value. In the code, I put 5 in the pattern scale, but, when I see the properties in LandDesktop, I see the value I wrote (5), but the hatch appears to have another value instead, I mean, if I write manually the value (5), the hatch's appearance change radically. My apologies for my bad english. Thanks in advance!

...
myHatch.SetHatchPattern(HatchPatternType.PreDefined, "AR-SAND");
myHatch.ColorIndex = 2;
myHatch.PatternScale = 5;
...
Contributor
12 Posts
0 Kudos
Registered: ‎06-17-2012
Post 2 of 3

Re: Hatch pattern scale problem

07-17-2012 06:02 AM in reply to: everts
I am seeing the same problem. Anyone know why? Gary
ADN Support Specialist
102 Posts
26 Kudos
Registered: ‎06-15-2011
Post 3 of 3

Re: Hatch pattern scale problem

07-30-2012 02:05 AM in reply to: ghethco

Hi

 

Try setting “SetHatchPattern” after setting “PatternScale” like

 

myHatch.ColorIndex = 2;

myHatch.PatternScale = 5;

myHatch.SetHatchPattern(HatchPatternType.PreDefined, "AR-SAND");



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post