Jump to content
Developer Wiki and Function Reference Links ×

Getting the exact dimension tool type


KN Stef

Recommended Posts

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.

Link to comment
  • 1 month later...

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;

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...