Use model space coordinates

Use model space coordinates

nikamaadeel
Observer Observer
300 Views
1 Reply
Message 1 of 2

Use model space coordinates

nikamaadeel
Observer
Observer

I'm using the Forge Viewer and I'm having trouble getting the model space coordinate system instead of paper space. I have a building floor plan in view and I can get the coordinates of things but they are all like 3.5, 4.6, etc. that would be within an 8.5x11 piece of paper so I would assume that's paper coordinates. I really need model coordinates that should be more like 56, 75, 152, etc. (assuming it's feet). I've tried looking for different viewables but it always seems to be paper space.
Here is my code to load a document: 

  viewer?.loadDocumentNode(doc, doc.getRoot().getDefaultGeometry()).then(e => {
    console.log(e);
    if (viewerReady) {
      viewerReady(viewer!);
    }
  });

This works but I get the paper coordinates. I did look through the name of the viewable that comes back as default and it's 'Model' so that seems like it's model space to me but the coordinates don't seem to be. I did also open the source ACAD drawing and confirmed that in model space the coordinates are correct (one test was 345ft, etc.).

Is this something I can see in the document somewhere? Is there a scaling of some type? Or a parameter of some type in the conversion that I need to set? How do I get the 'real' coordinates?

0 Likes
301 Views
1 Reply
Reply (1)
Message 2 of 2

pendean
Community Legend
Community Legend

@nikamaadeel wrote:

I'm using the Forge Viewer...


Forge Viewer is not supported in any forum on this site: sorry.
Try over here https://forge.autodesk.com/en/support/get-help

 

 

0 Likes