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

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

Highlighted
Contributor

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
Highlighted

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

Hi,

please explain the term “Grid Reference”.


Martin Hanák
Highlighted

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

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 ? 

Highlighted

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

Hi,

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

I hope @DavidBigelow knows an answer.


Martin Hanák
Highlighted

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

Hi Martin,

Thank you so much.

Your question has actually answered me with the solution.

Best regards

location maybe the answer.jpg

Highlighted

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

Well done @Kittychen!

 

Highlighted

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

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

 

Announcements