OLE enumerated DC entity type

Started by dcadRob, July 20, 2012, 09:55:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dcadRob

Why doesn't the list of entity type in the OLE help match the list in macro help?
OLE help:
QuoteDcEntityTypes:

dcEntUnknown = -1,An entity of unrecognized type
dcEntLine = 10,A line entity
dcEntDoubleLine = 11, A double line entity
dcEntConstructionLine = 12,A construction line entity
dcEntMultiLine = 13,A multi-line entity
dcEntBezier = 20,A bezier curve entity
dcEntCurve = 21,A spline curve entity
dcEntDoubleBezier = 22,A double bezier curve entity
dcEntDoubleCurve = 23,A double spline curve entity
dcEntMultiBezier = 24A multi-line bezier curve entity
dcEntMultiCurve = 25,A multi-line spline curve entity
dcEntCircle = 30,A circle or arc entity
dcEntDoubleCircle = 31,A double circle or double arc entity
dcEntMultiCircle = 32,A Multi-line circle or arc entity
dcEntEllipse = 40,An ellipse or elliptical arc entity
dcEntDoubleEllipse = 41,A Double ellipse or double elliptical arc entity
dcEntMultiEllipse = 42,A Multi-line ellipse or elliptical arc entity
dcEntHatch = 50,A hatch entity
dcEntArrow = 60,An arrow entity
dcEntPlane = 70,A plane entity
dcEntGrid = 80,A grid entity
dcEntPoint = 90,A pointmark entity
dcEntDim = 100,A linear dimension entity
dcEntDimAngle = 101,An angular dimension entity
dcEntDimArc = 102,An arc dimension entity
dcEntDimChamfer = 103,A chamfer dimension entity
dcEntDimCoordinate = 104,A coordinate dimension entity
dcEntDimDiameterRadius = 105,A radius or diameter dimension entity
dcEntDimRadiusProgress = 106,A progressive radial dimension entity
dcEntDimProgress = 107,A progressive dimension entity
dcEntImage = 200,A raster image entity
dcEntSymbol = 300,A symbol entity
dcEntText = 400,A 3D text entity
dcEntTextArc = 401,A text arc entity
dcEntText2D = 402,A 2D text entity
dcEntAttribute = 403,An attribute entity
dcEntMultiText = 404,A multitext entity
dcEntMultiText2d = 405,A 2D text multitext entity
dcEntViewFrame = 500A view frame entity


DrollTroll

I don't know why the programmer who implemented that aspect of OLE Automation chose to use different numbers. I'm sure he had a good reason at the time; perhaps he felt grouping them by some sort of numeric similarity would be helpful. This choice happened over ten years and three (maybe four) companies ago.
25 years with DesignCAD

dcadRob

I wanted to make an entity description macro (the final ultimate one) and found that your NewMakeXYZ.d3i has 36 entity numbers, the Macro17 help has 37 entity numbers and OLE enums has 38 entity numbers.
Not that it's the end of the world ...