René's URL Explorer Experiment


Title: AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' · Issue #5458 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' · Issue #5458 · IfcOpenShell/IfcOpenShell

X Title: AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' · Issue #5458 · IfcOpenShell/IfcOpenShell

Description: I am getting the error builder = ifcopenshell.util.shape_builder.ShapeBuilder(model) AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' while creating custom representations. I am using it as import ifcopenshell ...

Open Graph Description: I am getting the error builder = ifcopenshell.util.shape_builder.ShapeBuilder(model) AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' while creating custom representation...

X Description: I am getting the error builder = ifcopenshell.util.shape_builder.ShapeBuilder(model) AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' while creating custo...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5458

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder'","articleBody":"I am getting the error \r\n```\r\nbuilder = ifcopenshell.util.shape_builder.ShapeBuilder(model)\r\nAttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder'\r\n```\r\nwhile creating [custom representations](https://docs.ifcopenshell.org/ifcopenshell-python/geometry_creation.html#custom-representations). I am using it as \r\n\r\n```\r\nimport ifcopenshell\r\nfrom ifcopenshell.api import run\r\n\r\nmodel = ifcopenshell.file()\r\nproject = run(\"root.create_entity\", model, ifc_class=\"IfcProject\", name='project_name')\r\nlength_unit = run(\"unit.add_conversion_based_unit\", model, name=\"FOOT\")\r\nrun(\"unit.assign_unit\", model, units=[length_unit])\r\ncontext = run(\"context.add_context\", model, context_type=\"Model\")\r\nbody = run(\"context.add_context\", model, context_type=\"Model\",\r\n           context_identifier=\"Body\", target_view=\"MODEL_VIEW\", parent=context)\r\nsite = run(\"root.create_entity\", model, ifc_class=\"IfcSite\", name='site_name')\r\nbuilding = run(\"root.create_entity\", model, ifc_class=\"IfcBuilding\", name='building_name')\r\nstorey = run(\"root.create_entity\", model, ifc_class=\"IfcBuildingStorey\", name='storey_name')\r\nrun(\"aggregate.assign_object\", model, relating_object=project, products=[site])\r\nrun(\"aggregate.assign_object\", model, relating_object=site, products=[building])\r\nrun(\"aggregate.assign_object\", model, relating_object=building, products=[storey])\r\nelement = run(\"root.create_entity\", model, ifc_class='IfcPipeSegment')\r\n\r\nbuilder = ifcopenshell.util.shape_builder.ShapeBuilder(model)\r\n\r\n# Sweep a 10mm radius disk along a polyline with a couple of straight segments and an arc.\r\ncurve = builder.polyline(\r\n    [(0., 0., 0.), (100., 0., 0.), (171., 29., 0.), (200., 100., 0.), (200., 200., 0.)],\r\n    arc_points=[2])\r\nswept_curve = builder.create_swept_disk_solid(curve, 10)\r\n\r\n# Create a body representation\r\nbody = ifcopenshell.util.representation.get_context(model, \"Model\", \"Body\", \"MODEL_VIEW\")\r\nrepresentation = builder.get_representation(body, swept_curve)\r\nrun(\"geometry.assign_representation\", model, product=element, representation=representation)\r\nrun(\"spatial.assign_container\", model, relating_structure=storey, products=[element])\r\noutput_file = \"ifcopenshell_trial.ifc\"\r\nmodel.write(output_file)\r\nprint(f\"IFC file saved as {output_file}\")\r\n```\r\n\r\n\r\nThe ifcopenshell version I am using is `'0.8.0'` and python version is `Python 3.9.0`","author":{"url":"https://github.com/yashkcv","@type":"Person","name":"yashkcv"},"datePublished":"2024-09-23T12:55:08Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5458"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cbf06a4b-0af5-cf89-d41d-d02380cc56c7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id872E:13E066:3585C7:47702D:6B04B95D
html-safe-nonce59e948bd5a45cbb31e0c07deb3891f4cc2e42a754538af711ec05f4bcf983a10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzJFOjEzRTA2NjozNTg1Qzc6NDc3MDJEOjZCMDRCOTVEIiwidmlzaXRvcl9pZCI6IjM0MTEyMDU1NzM5NDgyNTg2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac344e473d0e03a30af926840964da40beee25277400629bea77b0b65d16de0eea
hovercard-subject-tagissue:2542552618
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/IfcOpenShell/IfcOpenShell/5458/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5a1f1b472466aa83f0dbb8c3e56433c44eedd59f08d53be0a4a69bf30db795d0/IfcOpenShell/IfcOpenShell/issues/5458
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5a1f1b472466aa83f0dbb8c3e56433c44eedd59f08d53be0a4a69bf30db795d0/IfcOpenShell/IfcOpenShell/issues/5458
og:image:altI am getting the error builder = ifcopenshell.util.shape_builder.ShapeBuilder(model) AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder' while creating custom representation...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyashkcv
hostnamegithub.com
expected-hostnamegithub.com
None378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
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
releaseb032e77f1ea437ede6c115446a0a467709b468e7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/5458#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F5458
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F5458
Sign uphttps://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=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/5458
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/5458
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/5458
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests939 (939)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5458
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5458
AttributeError: module 'ifcopenshell.util' has no attribute 'shape_builder'https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#top
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
https://github.com/yashkcv
yashkcvhttps://github.com/yashkcv
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issue-2542552618
custom representationshttps://docs.ifcopenshell.org/ifcopenshell-python/geometry_creation.html#custom-representations
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2368148218
Moulthttps://github.com/Moult
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#event-14363401246
https://github.com/yashkcv
yashkcvhttps://github.com/yashkcv
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2368195886
@Moulthttps://github.com/Moult
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2368215317
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2368347378
#5192https://github.com/IfcOpenShell/IfcOpenShell/issues/5192
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 23, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#event-14364639466
https://github.com/yashkcv
yashkcvhttps://github.com/yashkcv
on Sep 24, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2371061971
@Moulthttps://github.com/Moult
blender.crash.txthttps://github.com/user-attachments/files/17114264/blender.crash.txt
#5213https://github.com/IfcOpenShell/IfcOpenShell/issues/5213
sample_custom_rep.ifc.txthttps://github.com/user-attachments/files/17114335/sample_custom_rep.ifc.txt
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 24, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2371221535
https://docs.ifcopenshell.org/ifcopenshell-python/code_examples.html#create-a-simple-model-from-scratchhttps://docs.ifcopenshell.org/ifcopenshell-python/code_examples.html#create-a-simple-model-from-scratch
#5474https://github.com/IfcOpenShell/IfcOpenShell/issues/5474
#5473https://github.com/IfcOpenShell/IfcOpenShell/issues/5473
https://github.com/yashkcv
yashkcvhttps://github.com/yashkcv
on Sep 24, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2371416030
@Moulthttps://github.com/Moult
custom representationhttps://docs.ifcopenshell.org/ifcopenshell-python/geometry_creation.html#custom-representations
example filehttps://github.com/user-attachments/files/17115827/working_sample.ifc.txt
custom representation documentation sectionhttps://docs.ifcopenshell.org/ifcopenshell-python/geometry_creation.html#custom-representations
https://private-user-images.githubusercontent.com/85916446/370337016-ee86612f-551a-4542-abd0-dc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BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDIyMDgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExMTc5NTVjNTA3ZmMxNTFhMDk2M2U2MDEwYTZlZTg1NGNkMWE0YTEzYzg1ZTI2NWQ2YWM5ZTNhYjIyNTZlMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.BIcHBRioP6yc9PwYWUm3WGL6P-uE9WqSO-UTbwiSFEg
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 24, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2372564777
https://github.com/yashkcv
yashkcvhttps://github.com/yashkcv
on Sep 25, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2373914000
@Moulthttps://github.com/Moult
ifc filehttps://github.com/user-attachments/files/17130618/sample.ifc.txt
blender.crash.txthttps://github.com/user-attachments/files/17130664/blender.crash.txt
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 25, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5458#issuecomment-2373934404
#5474https://github.com/IfcOpenShell/IfcOpenShell/issues/5474
@aothmshttps://github.com/aothms
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5458
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5458
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.