I wrote a simple SKILL script which pulls the properties off a shape and prints into a text file.
LayerPair: ("m1" "drawing")
ShapePts: ((0.0 0.0) (100.0 100.0))
PropertyName: Name PropertyValue: "p3"
LxLyCoor: 0.000000:0.000000
DxDy: 100.000000:100.000000
EndShape!
I may want to add minor modifications to the coordinates then read the file back into SKILL and re-create the shapes using dbCreateRect, dbCreatePolygon..feeding it the same info I pulled off the shape.
I use an 'infile and gets' to read each line. The lines come in with the following syntax.
"LayerPair: (\"m2\" \"drawing\") \n"
I've tried parseString and other manipulations unsuccessfully. I'm sure there is a clever and obvious way to do this.
I did look at the online support, forum and google but I may not be phrasing the question correctly.
I'd appreciate some pointers on what I'm doing wrong with the syntax..this should be simple with SKILL.