René's URL Explorer Experiment


Title: exp2python.exe built in VS2019 converts into unparsable code for python3 from AP214&AP242 exp files · Issue #427 · stepcode/stepcode · GitHub

Open Graph Title: exp2python.exe built in VS2019 converts into unparsable code for python3 from AP214&AP242 exp files · Issue #427 · stepcode/stepcode

X Title: exp2python.exe built in VS2019 converts into unparsable code for python3 from AP214&AP242 exp files · Issue #427 · stepcode/stepcode

Description: Hi, I need to reorder ap214 or ap242 python code generated exp2python.exe when I use them as python STEP module in windows. exp2python.exe was generated in VS2019 professional by building cpp codes of SC.sln which were generated after cm...

Open Graph Description: Hi, I need to reorder ap214 or ap242 python code generated exp2python.exe when I use them as python STEP module in windows. exp2python.exe was generated in VS2019 professional by building cpp codes...

X Description: Hi, I need to reorder ap214 or ap242 python code generated exp2python.exe when I use them as python STEP module in windows. exp2python.exe was generated in VS2019 professional by building cpp codes...

Opengraph URL: https://github.com/stepcode/stepcode/issues/427

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"exp2python.exe built in VS2019 converts into unparsable code for python3 from AP214\u0026AP242 exp files","articleBody":"Hi,\r\nI need to reorder ap214 or ap242 python code generated exp2python.exe when I use them as python STEP module in windows.\r\nexp2python.exe was generated in VS2019 professional by building cpp codes of SC.sln which were generated after cmake generation.\r\n\r\nI'm checking python code in python 3.9.7, but the issue could be replicated in the other python environment because converted code declares with **_its def function and global variable_** invalid ordering.\r\n\r\nI can reduce the problems by reordering the declaration parts ... but we're not recommended to edited them.\r\n\r\n## 1. AP214\r\n\r\nIn command prompt,\r\n\r\n```\r\n\u003e SET PATH_TEMP=F:\\STEPLibrary\\github\\py_stepcode\\\r\n\u003e %PATH_TEMP%\\cmake-build\\Debug\\bin\\exp2python %PATH_TEMP%\\data\\ap214e3\\AP214E3_2010.exp\r\n```\r\nexp2python.exe generated 'automotive_design.py' and after I imported it:\r\n\r\n```python\r\n\u003e\u003e\u003e from automotive_design import *\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"F:\\STEPLibrary\\github\\py_stepcode\\src\\exp2python\\python\\example\\automotive_design.py\", line 1332, in \u003cmodule\u003e\r\n    ypr_rotation = ARRAY(ypr_index(ypr_enumeration.yaw),ypr_index(ypr_enumeration.roll),'REAL', scope = schema_scope)\r\nNameError: name 'ypr_index' is not defined\r\n```\r\n\r\nSo, copy the file renamed as 'automotive_design_reorder.py' and _ def ypr_index_ (40260 line) _ ypr_enumeration _(1799 line) moved after import declaration:\r\n\r\n```python\r\n\u003e\u003e\u003e from automotive_design import *\r\n\u003e\u003e\u003e\r\n```\r\n\r\nThen, I checked import process.\r\n\r\n## 2. AP242\r\n\r\nexp2python.exe generated 'ap242_managed_model_based_3d_engineering_mim_lf.py' and after I imported it:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"F:\\STEPLibrary\\github\\py_stepcode\\src\\exp2python\\python\\example\\ap242_managed_model_based_3d_engineering_mim_lf.py\", line 76001\r\n    if id_valid  ==  TRUE:\r\nIndentationError: expected an indented block\r\n```\r\n\r\nI checked an indent was omitted at 76001 line \r\n\r\n```python\r\n####################\r\n # FUNCTION validate_attribute_id #\r\n####################\r\ndef validate_attribute_id(attid,):\r\n\t'''\r\n\t:param attid\r\n\t:type attid:STRING\r\n\t'''\r\n\tif ( not (attid[1]  ==  letters)):\r\n\t\tid_valid = FALSE\r\n\tfor i in range(2,id_length,1):\r\nif id_valid  ==  TRUE:\r\n\t\t\tif ( not (attid[i]  ==  valid_chars)):\r\n\t\t\t\tid_valid = FALSE\r\n\treturn id_valid\r\n```\r\n\r\nand I corrected. Then I interpreted python code again:\r\n\r\n```python\r\n\u003e\u003e\u003e from ap242_managed_model_based_3d_engineering_mim_lf_reorder import *\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"F:\\STEPLibrary\\github\\py_stepcode\\src\\exp2python\\python\\example\\ap242_managed_model_based_3d_engineering_mim_lf_reorder.py\", line 2419, in \u003cmodule\u003e\r\n    ypr_rotation = ARRAY(ypr_index(ypr_enumeration.yaw),ypr_index(ypr_enumeration.roll),'REAL', scope = schema_scope)\r\nNameError: name 'ypr_index' is not defined\r\n```\r\n\r\nthe error is similar to automotive_design.py, so reorder after import declaration and interpreted again:\r\n\r\n```python\r\n\u003e\u003e\u003e from ap242_managed_model_based_3d_engineering_mim_lf_reorder import *\r\n\u003e\u003e\u003e\r\n```\r\n\r\n---\r\n\r\nBy the way, How do you think these errors should be originated from *.exp file or exp2python?\r\nI wish these problems happened due to my operation mistakes...\r\n\r\n","author":{"url":"https://github.com/belre","@type":"Person","name":"belre"},"datePublished":"2021-10-13T04:37:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/427/stepcode/issues/427"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ebfde433-eb7a-02f8-247c-9cb394a2acc5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA24A:11B87F:7162A63:94B1110:69753874
html-safe-nonce5562e5c51087db6be0b2f1923ea4287b29f74c2af9855bbfce4ace009aa2b61c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjRBOjExQjg3Rjo3MTYyQTYzOjk0QjExMTA6Njk3NTM4NzQiLCJ2aXNpdG9yX2lkIjoiODA4NDA2MDA5NTY3MjMwMTY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1f911415fdc0db8a032af1c2885333944b4641fe0cb0062fded1c598f85664e0
hovercard-subject-tagissue:1024768855
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stepcode/stepcode/427/issue_layout
twitter:imagehttps://opengraph.githubassets.com/15db29a6ad3bfd5dc8e17b341e19dd28e5ddc7e76fdfa9769ce8f0ec3707458e/stepcode/stepcode/issues/427
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/15db29a6ad3bfd5dc8e17b341e19dd28e5ddc7e76fdfa9769ce8f0ec3707458e/stepcode/stepcode/issues/427
og:image:altHi, I need to reorder ap214 or ap242 python code generated exp2python.exe when I use them as python STEP module in windows. exp2python.exe was generated in VS2019 professional by building cpp codes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebelre
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/stepcode/stepcode git https://github.com/stepcode/stepcode.git
octolytics-dimension-user_id1761770
octolytics-dimension-user_loginstepcode
octolytics-dimension-repository_id1975387
octolytics-dimension-repository_nwostepcode/stepcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1975387
octolytics-dimension-repository_network_root_nwostepcode/stepcode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stepcode/stepcode/issues/427#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstepcode%2Fstepcode%2Fissues%2F427
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstepcode%2Fstepcode%2Fissues%2F427
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=stepcode%2Fstepcode
Reloadhttps://github.com/stepcode/stepcode/issues/427
Reloadhttps://github.com/stepcode/stepcode/issues/427
Reloadhttps://github.com/stepcode/stepcode/issues/427
stepcode https://github.com/stepcode
stepcodehttps://github.com/stepcode/stepcode
Notifications https://github.com/login?return_to=%2Fstepcode%2Fstepcode
Fork 129 https://github.com/login?return_to=%2Fstepcode%2Fstepcode
Star 490 https://github.com/login?return_to=%2Fstepcode%2Fstepcode
Code https://github.com/stepcode/stepcode
Issues 63 https://github.com/stepcode/stepcode/issues
Pull requests 1 https://github.com/stepcode/stepcode/pulls
Actions https://github.com/stepcode/stepcode/actions
Projects 0 https://github.com/stepcode/stepcode/projects
Wiki https://github.com/stepcode/stepcode/wiki
Security 0 https://github.com/stepcode/stepcode/security
Insights https://github.com/stepcode/stepcode/pulse
Code https://github.com/stepcode/stepcode
Issues https://github.com/stepcode/stepcode/issues
Pull requests https://github.com/stepcode/stepcode/pulls
Actions https://github.com/stepcode/stepcode/actions
Projects https://github.com/stepcode/stepcode/projects
Wiki https://github.com/stepcode/stepcode/wiki
Security https://github.com/stepcode/stepcode/security
Insights https://github.com/stepcode/stepcode/pulse
New issuehttps://github.com/login?return_to=https://github.com/stepcode/stepcode/issues/427
New issuehttps://github.com/login?return_to=https://github.com/stepcode/stepcode/issues/427
exp2python.exe built in VS2019 converts into unparsable code for python3 from AP214&AP242 exp fileshttps://github.com/stepcode/stepcode/issues/427#top
https://github.com/belre
https://github.com/belre
belrehttps://github.com/belre
on Oct 13, 2021https://github.com/stepcode/stepcode/issues/427#issue-1024768855
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.