It looks like you're new here. If you want to get involved, click one of these buttons!
I want to mark some coordinetes, how to make it work?
You can place a cross-mark "ruler" at the desired location:
# for example at 4.5, 7.2: a = pya.Annotation() a.p1 = pya.DPoint(4.5, 7.2) a.p2 = a.p1 a.fmt = "$U,$V" a.fmt_x = "" a.fmt_y = "" a.style = pya.Annotation.StyleCrossEnd pya.LayoutView.current().insert_annotation(a)
To remove the marker, use
a.delete()
Matthias
Hi @Matthias , Thanks for your code, but I tried seems not worked. Puts notice : " undefined local variable or method `pya' for DRCEngine(...):DRC::DRCEngine",how to fix it?
The code above is Python. You said nothing about where you want that code to run.
The corresponding Ruby version is this:
# for example at 4.5, 7.2: a = RBA::Annotation::new a.p1 = RBA::DPoint::new(4.5, 7.2) a.p2 = a.p1 a.fmt = "$U,$V" a.fmt_x = "" a.fmt_y = "" a.style = RBA::Annotation::StyleCrossEnd RBA::LayoutView.current.insert_annotation(a)
Comments
You can place a cross-mark "ruler" at the desired location:
To remove the marker, use
Matthias
Hi @Matthias ,
Thanks for your code, but I tried seems not worked. Puts notice : " undefined local variable or method `pya' for DRCEngine(...):DRC::DRCEngine",how to fix it?
The code above is Python. You said nothing about where you want that code to run.
The corresponding Ruby version is this:
Matthias