doc.Guides
The guide collection. Readable and writable.
Signature
doc.Guides
Notes
The guide collection. Readable and writable.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
guides = doc.Guides
print("Guides: ", guides.Count)
for i in range(1, guides.Count + 1):
g = guides.Item(i) # g : the i-th guide
print(i, "Position: ", g.Position)
About this section: Document
Document — documents and file handling.
- This section has 20 entries; this is one of them.
- See the full section index: Document
Other entries in this section
- doc.PagesThe page collection. doc.Pages.Count for the total, doc.Pages.Item(i)
- doc.AddPages(n)Appends n pages at the end. The idiom while len(doc.Pages) < page_inde
- doc.ActivePageThe current page object.
- doc.ActiveLayerThe active layer of the current page.
- doc.UnitDocument unit (cdrUnit). Every geometric value follows it: shape coord
- doc.ResolutionDocument resolution in dpi. Affects bitmap export and effect rendering
- doc.ReferencePointReference point for transforms. It anchors SetPosition and SetSize and
- doc.ClearSelection()Deselects everything. Call it before a batch run so you don't accident