cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

CREOSON: How to get the Grid-Reference of a dimension in .drw ?

Kittychen
12-Amethyst

CREOSON: How to get the Grid-Reference of a dimension in .drw ?

How to get the Grid-Reference of a dimension? I tried to read a dimension by CREOSON

 

c.dimension_list_detail(name='D14')

 

and the response is :

[{'dwg_dim': False,
  'dim_type': 'linear',
  'name': 'd14',
  'sheet': 0,
  'value': 30.0,
  'encoded': False,
  'text': ['{0:@D}\n']}]

 No grid-reference info. So what's the correct way? 

6 REPLIES 6

Hi,

please explain the term “Grid Reference”.


Martin Hanák

how_creoson_sw_get_grid_ref_of_a_dimension.jpg

We can see that A3 is the grid-reference of the dimension. How to get this information programmatically  through CREOSON ? 

Hi,

so you have grid defined in your format file, do you ?

I hope @DavidBigelow knows an answer.


Martin Hanák

Hi Martin,

Thank you so much.

Your question has actually answered me with the solution.

Best regards

location maybe the answer.jpg

Well done @Kittychen!

 

If you have an API possibility next to Creoson you could also ask for the Grid:

TK - ProDrawingPosToLocgrid

OTK:

JLink - I think there is no implementation for this ... but I'm not sure (haven't found it for Creo 3.0).

 

Else you need to know the set Format on the specified sheet to calculate the right grid position.

 

Only thing that can go wrong (in theory) is that the frame had changed in the meantime. You can not ask for the used drawing frame version.

 

Br,

Eike

 

Top Tags