Book a Demo

Author Topic: Diagram Page Dimensions - Pixels?  (Read 5929 times)

Gayle

  • EA User
  • **
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Diagram Page Dimensions - Pixels?
« on: March 18, 2016, 09:31:11 am »
Using EA12.1, I have a VB script that places elements on a "diagram" that is formatted as 8.5 x 11 inch pages.  There are more than 100 elements so I expect to have many pages in this diagram.  I have used diagramObjects.AddNew to insert class elements on these pages.  Each element uses a left margin location of 5 and right margin location of 805.  The elements are 200 tall and I have 10 pixels between the bottom of one element and the top of the next.  On the first page, I need the first element to be 90 pixels from the top so that I can have a diagram header and hyperlink back to another diagram.  For all of the other pages, the first element can be close to the top of the page.

The elements are created by the script and placed on the diagram pages.  The problem is that when I get to the bottom of each page, elements cross the page boundaries and become unreadable.  This model will be published as HTML and so I would like the pages to be formatted to be readable.  "Tweaking" element height and space between elements is too cumbersome, so I would like to write a loop to organize the elements on the diagram page, but I have not been able to determine page height.

Looking at the EA user manual and searching on the forum for previous questions I can't figure out exactly how many pixels per inch (or per page) I'm dealing with.

Gayle

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Diagram Page Dimensions - Pixels?
« Reply #1 on: March 18, 2016, 10:02:38 am »
I don't know the answer to your question, but you might get more joy creating a new diagram for each page.
The Sparx Team
[email protected]

Gayle

  • EA User
  • **
  • Posts: 37
  • Karma: +1/-0
    • View Profile
Re: Diagram Page Dimensions - Pixels?
« Reply #2 on: March 18, 2016, 10:08:37 am »
Unfortunately, I'm not sure that multiple pages would work because I would need links on each page to navigate through the model.  Right now one diagram is 27 pages when printed to PDF and the other is 34 pages.  That is still on the back burner as a possible solution.

Gayle

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Diagram Page Dimensions - Pixels?
« Reply #3 on: March 18, 2016, 10:20:36 am »
It could be that the DPI of your selected printer is the same as PPI, but then again there's probably more than one thing performing scaling in between you and the output that the answer is effectively unknowable. :-\