We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

ConvHatchToPoly missing from AC 13 DevKit

Anonymous
Not applicable
ArchiCAD 12 DevKit has ConvHatchToPoly function in vectorimagedata.h

I cannot find it from ArchiCAD 13 DevKit. What to do??

I have used it in conversion of VectorImage profiles:

1. Find Hatch from VectorImage using ConstVectorImageIterator

2. Convert the hatch to Geometry::Polygon2DData using ConvHatchToPoly

3. Convert the Polygon2DData to coordinates using Geometry::Polygon2DDataToPolyline
4 REPLIES 4
Ralph Wessel
Mentor
Matti wrote:
ArchiCAD 12 DevKit has ConvHatchToPoly function in vectorimagedata.h
I cannot find it from ArchiCAD 13 DevKit. What to do??
I have used it in conversion of VectorImage profiles:
I'm not sure what happened to those functions, but you can achieve the same results using ACAPI_Element_ShapePrims
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Thanks for the fast answer. What should I pass as elemHead when I want to extract the points of a beam profile which profileType is APISect_Poly?

ACAPI_Element_ShapePrims definition:

    GSErrCode  ACAPI_Element_ShapePrims (
        const API_Elem_Head&     elemHead,
        ShapePrimsProc*           shapePrimsProc
    );
Ralph Wessel
Mentor
Matti wrote:
Thanks for the fast answer. What should I pass as elemHead when I want to extract the points of a beam profile which profileType is APISect_Poly?
Sorry, misunderstood what you are trying to do. Have you looked at the 'Attribute_Test' project in the API examples? This shows how you gain access to all the primitives in the vector image. You can extract the coordinates for hatches using the Sy_HatchType structure.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
In ArchiCAD 13 DevKit ConvHatchToPoly is moved to ProfileAdditionalInfo.hpp

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!