Need help on import Proteus (DEXPI) files to imodeljs #299
-
I try to import Proteus (DEXPI) files to imodeljs. A Proteus file defines a drawing sheet with a list of objects (presented in the sheet) with 1D & 2D properties I know how to import the list of presented objects with 1D & 2D properties to imodeljs but do not know how to create a drawing sheet and to tell that the drawing include the objects with its own category. So 2 questions to you
Thank a lot |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 14 replies
-
Please give me some help |
Beta Was this translation helpful? Give feedback.
-
Thank for the answer.
I talk about “Sheets and drawings” in the view of an user, not in the concept of iModelJS
It is a sheet such as used in the P&ID: piping and instrumentation diagram (P&ID)
[cid:image003.png@01D6C7E6.64A356C0]
With best regards,
Huu Dung Nguyen
Siemens AG
Digital Industries
Process Automation
Software Development 2
DI PA AE CIS SW 2
Karl-Legien-Str. 190
53117 Bonn, Germany
Tel.: +49 228 64805-608
mailto:huu-dung.nguyen@siemens.com
www.siemens.com<https://siemens.com>
[cid:image004.gif@01D6C7E6.64A356C0]
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Klaus Helmrich, Cedrik Neike, Matthias Rebellius, Ralf P. Thomas, Judith Wiese; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin-Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322
From: Paul Connelly <notifications@github.com>
Sent: Tuesday, December 1, 2020 1:26 PM
To: imodeljs/imodeljs <imodeljs@noreply.github.com>
Cc: Nguyen, Huu Dung (DI PA AE CIS SW 2) <huu-dung.nguyen@siemens.com>; Author <author@noreply.github.com>
Subject: Re: [imodeljs/imodeljs] Need help on import Proteus (DEXPI) files to imodeljs (#299)
Sheets and drawings are two different kinds of 2d models. Can you specify which of those you mean by "drawing sheet"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fimodeljs%2Fimodeljs%2Fdiscussions%2F299%23discussioncomment-143627&data=04%7C01%7Chuu-dung.nguyen%40siemens.com%7C0782f2ee015c4dfc976008d895f43b7e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637424223488732194%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H7VGKSG4hTIwhHlD4ulLMPnzezkApS2kDBTgA0hMx4I%3D&reserved=0>, or unsubscribe<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARN3FTTWR6T4MXSLEEOKDWDSSTOEPANCNFSM4UAS4NYQ&data=04%7C01%7Chuu-dung.nguyen%40siemens.com%7C0782f2ee015c4dfc976008d895f43b7e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637424223488732194%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7UjXSN3pALoQVSacwGdDw9bM8KwilytbytEToJwA0mY%3D&reserved=0>.
|
Beta Was this translation helpful? Give feedback.
-
Your image is not viewable. It sounds like you want to create a DrawingModel. Here is a simple example. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It is not. I know what a P&ID looks like though. Consider replying on github instead of via email. |
Beta Was this translation helpful? Give feedback.
-
OK i resend it |
Beta Was this translation helpful? Give feedback.
-
What i would like to ask is: Is there any unit-test for that ? |
Beta Was this translation helpful? Give feedback.
-
That means that i create a createAndInsertDrawingModel() and insert element to this model ? What is about category ? |
Beta Was this translation helpful? Give feedback.
-
I take the test in \imodeljs\core\backend\src\test\standalone\GeometryStream.test.ts |
Beta Was this translation helpful? Give feedback.
-
I will change it e.g. to const elementProps: GeometricElementProps = { |
Beta Was this translation helpful? Give feedback.
-
This is the point of my trouble. i think i can insert any classFullName then the drawing mode is intelligent to take only what it can. It is IMHO only a name, what does imodeljs do with classFullName |
Beta Was this translation helpful? Give feedback.
-
Not so much familiar with BIS |
Beta Was this translation helpful? Give feedback.
-
As you said: " I am trying to track down some example code for you" can i expect to get some sample code to day ? Thank a lot |
Beta Was this translation helpful? Give feedback.
-
Please answer me if i am wrong: |
Beta Was this translation helpful? Give feedback.
Please answer me if i am wrong:
for a PID sheet , i should create a DrawingModel then add instances of GeometricElement2dProps with classFullName= DrawingGraphic.classFullName