KN Stef Posted December 9, 2020 Share Posted December 9, 2020 There is a number of different "dimension types" like unconstrained linear dimension tool or angular dimension tool. I am trying to get the exact type of the dimension object (not just 63 - "dimHeaderNode") size_t typeN = gSDK->GetObjectTypeN(obj1); //returns 63 - dimHeaderNode The reason I am doing this is the possibility to recreate the dimension later with one of the following functions: gSDK->CreateLinearDimension() gSDK->CreateCircularDimension() gSDK->CreateAngleDimension() gSDK->CreateChainDimension() Basically what I would like to know is if the given object is a linear, circular, angle or chain dimension. Quote Link to comment
KN Stef Posted January 18, 2021 Author Share Posted January 18, 2021 The dimension type can be found via following function: gSDK->GetObjectVariable(dimObject, ovDimClass, TVariableBlock) The mapping of the types can be found in "MiniCadCallBacks.h", as well as other specifiers (e.g. ovDimFontStyle) , if you are looking for other properties of the dimension object. // (fix_ang) = 0, // (sloped) = 1, // (ordinate) = 2, // (radial) = 3, // (diametrical) = 4, // (ang) = 5; Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.