Steps to add vector path objects to AI document
Hi to all AI gurus,
I'm novice AI developer (though generally experinced C/C++ dev) .
I have simple FileFormat plugin , my plugin can read some custom format vector file , similar to SVG , I would like to add strokes - path objects into new AI document.
As for this moment, I can read my file and have all vector data stored in memory ..
However I don't understand when exactly a new AI document has been created or how I can do this. I've checked TextFileFormat sample in SDK but still missing something.
Desired sequence is (having all data already prepared):
- Create new AI doc with specific dimensions , I have AIDocumentSetup but how can I set width/ height , units and DPI
- Insert new vector coordinates == crarete new PathArt objects
- Redraw entire doc
thats it.
I just need some basic guidance here regarding these 3 point. Any sample code, link, would help.
Many thanks,
David
Message was edited by: Davidbubu
