Title: AP210e3 problems · Issue #381 · stepcode/stepcode · GitHub
Open Graph Title: AP210e3 problems · Issue #381 · stepcode/stepcode
X Title: AP210e3 problems · Issue #381 · stepcode/stepcode
Description: Update: I have now noticed more issues with this schema, see this comment. I am working with ap210e3, and I see that the EXPRESS schema included with STEPcode has this: ENTITY shape_definition_representation SUBTYPE OF ( property_definit...
Open Graph Description: Update: I have now noticed more issues with this schema, see this comment. I am working with ap210e3, and I see that the EXPRESS schema included with STEPcode has this: ENTITY shape_definition_repr...
X Description: Update: I have now noticed more issues with this schema, see this comment. I am working with ap210e3, and I see that the EXPRESS schema included with STEPcode has this: ENTITY shape_definition_repr...
Opengraph URL: https://github.com/stepcode/stepcode/issues/381
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AP210e3 problems","articleBody":"### Update: ###\r\n\r\nI have now noticed more issues with this schema, see [this comment](https://github.com/stepcode/stepcode/issues/381#issuecomment-421306217).\r\n\r\n---\r\n\r\nI am working with `ap210e3`, and I see that the EXPRESS schema included with STEPcode has this:\r\n\r\n```\r\n ENTITY shape_definition_representation\r\n SUBTYPE OF ( property_definition_representation );\r\n SELF\\property_definition_representation.definition : property_definition;\r\n SELF\\property_definition_representation.used_representation : shape_representation;\r\n WHERE\r\n wr1: ( ( 'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF.PRODUCT_DEFINITION_SHAPE' IN TYPEOF(\r\n definition ) ) OR ( 'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF.SHAPE_DEFINITION' IN\r\n TYPEOF( definition\\property_definition.definition ) ) );\r\n END_ENTITY;\r\n\r\n(* ... *)\r\n\r\n ENTITY property_definition_representation;\r\n definition : represented_definition;\r\n used_representation : representation;\r\n DERIVE\r\n description : text := get_description_value( SELF );\r\n name : label := get_name_value( SELF );\r\n WHERE\r\n wr1: ( SIZEOF( USEDIN( SELF, 'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF.' + 'DESCRIPTION_ATTRIBUTE.'\r\n + 'DESCRIBED_ITEM' ) ) \u003c= 1 );\r\n wr2: ( SIZEOF( USEDIN( SELF, 'AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF.' + 'NAME_ATTRIBUTE.'\r\n + 'NAMED_ITEM' ) ) \u003c= 1 );\r\n END_ENTITY;\r\n```\r\n\r\nSo to my understanding `shape_definition_representation` renames both attributes of `property_definition_representation`, and `text` and `label` are derived attributes (so they should not be included in STEP file output).\r\n\r\nHowever, in `build/sc/schemas/sdai_ap201e3/entities/SdaiShape_definition_representation.cc` this code is used for the constructor:\r\n\r\n```c++\r\nSdaiShape_definition_representation::SdaiShape_definition_representation(): SdaiProperty_definition_representation(), _property_definition_representation_definition( 0 ), _property_definition_representation_used_representation( 0 ) {\r\n /* parent: SdaiProperty_definition_representation */\r\n /* Ignore the first parent since it is */\r\n /* part of the main inheritance hierarchy */\r\n\r\n eDesc = ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::e_shape_definition_representation;\r\n STEPattribute * a = new STEPattribute( * ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::a_959Rproperty_definition_representation_definition, ( SDAI_Application_instance_ptr * ) & _property_definition_representation_definition );\r\n a->set_null();\r\n attributes.push( a );\r\n MakeRedefined( a, \"definition\" );\r\n a = new STEPattribute( * ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::a_960Rproperty_definition_representation_used_representation, ( SDAI_Application_instance_ptr * ) & _property_definition_representation_used_representation );\r\n a->set_null();\r\n attributes.push( a );\r\n MakeRedefined( a, \"used_representation\" );\r\n MakeDerived( \"definition\", \"property_definition_representation\" );\r\n MakeDerived( \"used_representation\", \"property_definition_representation\" );\r\n MakeDerived( \"description\", \"property_definition_representation\" );\r\n MakeDerived( \"name\", \"property_definition_representation\" );\r\n}\r\n```\r\n\r\nSo `definition` and `used_representation` are marked first as redefined, then they are marked derived. I would have expected this code to generated a `shape_definition_representation` to work:\r\n\r\n```c++\r\nSdaiShape_definition_representation * oShapeDefinitionRepresentation\r\n = (SdaiShape_definition_representation *)oRegistry->ObjCreate(\"Shape_Definition_Representation\");\r\noShapeDefinitionRepresentation->property_definition_(new SdaiRepresented_definition(oProductDefinitionShape));\r\noShapeDefinitionRepresentation->shape_representation_(new SdaiRepresentation(oShape));\r\noInstanceManager->Append((SDAI_Application_instance *)oShapeDefinitionRepresentation, completeSE);\r\n```\r\n\r\nBut it doesn't, and in the output it only produces:\r\n\r\n```\r\n#1499=SHAPE_DEFINITION_REPRESENTATION(*,*);\r\n```\r\n\r\nI also tried to manually walk through the attributes using `ResetAttributes()`, `NextAttribute()` and comparing `Name()` to either `definition` or `property_definition_representation.definition`, but nothing worked (it still produced `*` in the output for both attributes). I tried to create this entity as a `STEPcomplex`, which allowed me to set the attributes on `Property_Definition_Representation`, and they finally showed in the output. The only problem with this approach is that CAD tools don't accept it. I know from existing STEP files that this entity is not represented as a complex.\r\n\r\nWhere is the problem?","author":{"url":"https://github.com/AureaNoire","@type":"Person","name":"AureaNoire"},"datePublished":"2018-09-11T15:11:52Z","url":"https://github.com/stepcode/stepcode/issues/381"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:964384ec-24f7-7475-cf53-d6fda6e55d68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCFA:1612C1:2239A5:2F2E63:6B0467CC |
| html-safe-nonce | 0159ef49787a07ca13b712f4e01bd9eaee92217e7b3ba291d97eeca81e3d5ed3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0ZBOjE2MTJDMToyMjM5QTU6MkYyRTYzOjZCMDQ2N0NDIiwidmlzaXRvcl9pZCI6IjMwMDgyNjY2NjcyNDg4NzEzNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0217ca54c9a1e3aa858eade67444ab84423cbf8ebaae68c8a1ca52247161a1b0 |
| hovercard-subject-tag | issue:359092896 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stepcode/stepcode/381/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a14d834cb34e5057d53cb65c25512fffec2defa81de05b1a03292a442fb445a2/stepcode/stepcode/issues/381 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a14d834cb34e5057d53cb65c25512fffec2defa81de05b1a03292a442fb445a2/stepcode/stepcode/issues/381 |
| og:image:alt | Update: I have now noticed more issues with this schema, see this comment. I am working with ap210e3, and I see that the EXPRESS schema included with STEPcode has this: ENTITY shape_definition_repr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AureaNoire |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/stepcode/stepcode git https://github.com/stepcode/stepcode.git |
| octolytics-dimension-user_id | 1761770 |
| octolytics-dimension-user_login | stepcode |
| octolytics-dimension-repository_id | 1975387 |
| octolytics-dimension-repository_nwo | stepcode/stepcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1975387 |
| octolytics-dimension-repository_network_root_nwo | stepcode/stepcode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width