Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

MacroConversion

WandererFan edited this page Feb 7, 2016 · 5 revisions

###Notes on Conversion of Spice Rack Macro to TechDraw

An example of a Drawing module macro modified to work with TechDraw is located here: modified macro . It is based on this original work.

  • X,Y position of Views
    • in TechDraw the X,Y is the actual position of the View (center) on Page.
    • in Drawing the X,Y is position (bottom,left?) less any transform="translate()" in the Template's SVG code
  • Scale of Views
    • in TechDraw the Scale seems to work correctly (60% of 1500mm is approx 900mm)
    • in Drawing the Scale seems odd (20% of 1500mm is approx 900mm)
  • XAxisDirection
    • in TechDraw, this controls the projection plane(?)
    • in Drawing, this does not exist(?). Projection plane is automagic?
  • Page.addView
    • in TechDraw, doc.addObject(view) + doc.page.addView(view)
    • in Drawing, doc.addObject(view) + doc.page.addObject(view)
  • Project Normal Direction
    • does not seem to work the same. identical values give different projections
  • Hidden Lines
    • in TechDraw, hidden lines are difficult to see (change colour? weight?)
  • Document Block
    • in TechDraw, the bottom right documentation block is much smaller than in Drawing. Not strictly a macro issue.
  • Template File Name
    • in TechDraw, Template file name is a property of Template object
    • in Drawing, Template file name is a property of Page

Clone this wiki locally