Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't understand how to use the 'PartitionCellBySketch' #1

Open
CNWindson opened this issue Nov 24, 2020 · 0 comments
Open

I can't understand how to use the 'PartitionCellBySketch' #1

CNWindson opened this issue Nov 24, 2020 · 0 comments

Comments

@CNWindson
Copy link

Thanks for your video on the Youtube. It helps me a lot. I'm waiting for every new video on Monday 233.
Here 's a problem that I'm trying to make a python script to produce random cylinder from your 3D-RVE script. But when I want to do the 'PartitionCellBySketch', I always got some error. Could u plz give me a detailed explanation? Thanks a lot.

mdb.models['Model-1'].parts['Wrie'].PartitionCellBySketch(
                 cells=mdb.models['Model-1'].parts['Wrie'].cells.findAt(((0.2, 0.2,0.2),)),
                 sketch=mdb.models['Model-1'].sketches['__profile__'], sketchOrientation=TOP, sketchPlane=
                 mdb.models['Model-1'].parts['Wrie'].datums[dp2.id],
                 sketchUpEdge=mdb.models['Model-1'].parts['Wrie'].edges.findAt((0.0, 0.0, 5.0), ))

There is always something wrong with 'findAt' in 'cells' and 'sketchUpEdge'(how to confige the coordinate and what does it mean?)
And I'll send u an email of my poor py script. It's my honour that if u could give me some help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant