I would like to know if there is a replacement for mdlPattern_linear in the CPP API.
When working with shapes you can do something like:
but I would like to add some linear pattern to a line / linestring.
Any ideas ?
EvanH said:I would like to know if there is a replacement for mdlPattern_linear
mdlPattern_linear remains available. A base class of LineHandler is ICurvePathEdit, but it doesn't have a pattern method.
2D shapes (ellipses etc.) that inherit from IAreaFillPropertiesEdit provide the AddPattern method.
Regards, Jon Summers LA Solutions
Jon is correct that mdlPattern_linear is still available for use. The only class approach that appears possible is by going through the ElementTemplate (ElementTemplateParamsHelper) functionality (sorry no examples in the SDK at this time) via AddElementClass **mInstance, DgnElementClass::LinearPatterned); which then calls mdlPattern_linear.