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

Hatch pattern scale problem

2 REPLIES 2
Reply
Message 1 of 3
everts
477 Views, 2 Replies

Hatch pattern scale problem

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;
...
2 REPLIES 2
Message 2 of 3
ghethco
in reply to: everts

I am seeing the same problem. Anyone know why? Gary
Message 3 of 3
Virupaksha_aithal
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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost