Model Pattern vs Drafting Pattern

Model Pattern vs Drafting Pattern

dgoff96
Enthusiast Enthusiast
1,597 Views
2 Replies
Message 1 of 3

Model Pattern vs Drafting Pattern

dgoff96
Enthusiast
Enthusiast

I am working on a tool that collects all of the patterns in a file. I am wondering how to access the parameter that tells you if the pattern is a model pattern or a drafting pattern? I have tried 

patternElement.GetType()

but all that tells me is that it's a FillPatternElement. Nothing in the API docs is jumping out as an obvious answer here.

 

Any ideas on how to get this information?

 

Thanks!

0 Likes
Accepted solutions (1)
1,598 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @dgoff96 ,

try using the below code

FillPatternElement FPE;
FillPattern FP = FPE.GetFillPattern();
FillPatternTarget FPT = FP.Target;

FillPatterenTarget returns the type of fill pattern.

 

 

If this helped solve your problem please mark it as a solution, so other users can get this solution as well😊


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

dgoff96
Enthusiast
Enthusiast

@naveen.kumar.t  that did the trick, thank you!👍

0 Likes