Cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to create angular dimension using UF_DRF_create_angular_dim

Valued Contributor
Valued Contributor

Hi,

 

I'm currently trying to create an angular dimension using two section view edges with UF_DRF_create_angular_dim.

I follow the example that can be found in the ugdocs.

 

When I execute the API, a dimension tag_t is passed and no error is thrown but the created dim is not visible or selectable.

 

Did anyonw of you already ran into the same problem?

 

Here is a code sample, edge 1 and edge 2 are the edges from teh section view:

 

		UF_DRF_init_object_structure(&object1);
		object1.object_assoc_type = UF_DRF_end_point;
		object1.object_assoc_modifier = UF_DRF_last_end_point;
		object1.object_tag = edge1;
		object1.object_view_tag = view;
		UF_DRF_init_object_structure(&object2);
		object2.object_assoc_type = UF_DRF_end_point;
		object2.object_assoc_modifier = UF_DRF_last_end_point;
		object2.object_tag = edge2;
		object2.object_view_tag = view;

	        UF_DRF_create_angular_dim(1, &object1, &object2, &drf_text, line_data.start, &dim);

 

 

 

 

Thanks in advance,

 

Thomas

2 REPLIES

Re: Trying to create angular dimension using UF_DRF_create_angular_dim

Esteemed Contributor
Esteemed Contributor

I'm not sure these are your problem, but some things I'd check

From the tag can you get/check the origin? (could be off the drawing?)

Also Layer? (could be layer is not visible-in-view?)

Check if view dependant on Drawing or View? (if view - does an "update" show it?)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Trying to create angular dimension using UF_DRF_create_angular_dim

Valued Contributor
Valued Contributor

Thanks Ken,

 

After checking the origin after the dim was created, I saw that the input origin was not kept.

 

So if I set the dim origin again after it was created, it becomes visible.

 

Thanks for your fast reply!