SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
81 stars 23 forks source link

Tables in drawings #13

Closed dmtr99 closed 4 years ago

dmtr99 commented 5 years ago

It would be interested to read and modify tables in a drawing:

A use case for this would be for example a revision table.

adama2000 commented 4 years ago

We've looked at this in the past, and it's very complicated to cover all the bases properly with the limited functionality PTC provides beyond some basic creation / manipulation.

Low priority for us right now, but if someone wants to propose some code for inclusion we'll take a look at it.

dummifiedme commented 1 year ago

Was there ever any progress on the table in drawing front? Is it possible to add a table into the drawing sheet using creoson?

@dmtr99, could you find a way to create/modify a table in a drawing sheet in creo?

dmtr99 commented 1 year ago

I did not found a good way to modify existing tables.

Creating is quite easy, check the format of the drawing and use a generated mapkey. I would recommend to rename the table so you are able to search for it.

dummifiedme commented 1 year ago

@dmtr99 thanks for the insight. I didn't know about mapkeys. Please allow me to explain what I needed to do, and if you feel you can suggest how to proceed, please do.

I have a set of symbols for which I need to generate a table if they are on a sheet with their respective locations. A column each for symbol, location and the dimension next to it.

I figured out everything using creoson/creopyson, but unable to find a way to put it into a table.

As you suggested using MapKeys, are these mapkeys capable to run a python script? As in, I would want to create a table using the CreoButtons I suppose which will maybe work using mapkeys (?) and then put in the values I retrieve using the python script. Is it possible?

Should I use mapkeys for compiling the whole thing and remove creoson altogether?

Any suggestion would really be helpful :)

dummifiedme commented 1 year ago

@dmtr99 Can you please suggest how to add a table?