Hi all
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:
ShapeHandler::GetInstance().AddPattern(
but I would like to add some linear pattern to a line / linestring.
Any ideas ?
TIA
Regards Evan
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.
mdlPattern_linear
LineHandler
ICurvePathEdit
2D shapes (ellipses etc.) that inherit from IAreaFillPropertiesEdit provide the AddPattern method.
IAreaFillPropertiesEdit
AddPattern
Regards, Jon Summers LA Solutions
Hi EvanH,
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.
HTH,Bob