ConvHatchToPoly missing from AC 13 DevKit
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-09
02:18 PM
- last edited on
2023-08-03
01:23 PM
by
Doreena Deng
2009-11-09
02:18 PM
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
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
Labels:
- Labels:
-
Add-On (C++)
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-09 03:45 PM
2009-11-09
03:45 PM
Matti wrote:I'm not sure what happened to those functions, but you can achieve the same results using
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:
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-10 10:23 AM
2009-11-10
10:23 AM
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:
ACAPI_Element_ShapePrims definition:
GSErrCode ACAPI_Element_ShapePrims ( const API_Elem_Head& elemHead, ShapePrimsProc* shapePrimsProc );
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-10 01:00 PM
2009-11-10
01:00 PM
Matti wrote: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.
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?
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-04 09:51 AM
2009-12-04
09:51 AM
In ArchiCAD 13 DevKit ConvHatchToPoly is moved to ProfileAdditionalInfo.hpp