Here I am trying to run Selection.SetElementIds() after using the PostCommand() method but it seems as though the selection occurs before the PostCommand when I run the script.
So I tried to find a way to do this but wasn’t able to. The logic behind my method was to do the following:
Post the MergeSurfaces command
Select the first Surface
Select the second (adjacent) Surface
This ended up not working, but the thought behind it was to select two surfaces in two separate transactions rather than selecting a collection of surfaces at the same time.
That’s a little too deep into the “Iron” part of IronPython for me. It sounds like the right direction, but I haven’t interacted enough with other parts of the API to be able to provide any advice.
Thank you for your response. I was successful at extracting the points and creating a new topo; however, I still ran into the problem of the topo tool generating convex hulls instead of concave.
So the only way to generate concave hulls is through the split surface tool; and the only way to access the split surface tool is through the postable command method. So I’m curious if that method requires some special workflows to use (I attempted a python multi-thread w/ time modules “sleep” method to delay until the postable command ran but was unable to get working). Otherwise I think we will have to wait for an update in the API to use these tools unfortunately.
Does that make sense to you? Do you have any additional thoughts?
I could put together a test file for this thread but it would have to wait until later today. I really would like to get this figured out I’ve been stuck on this and would like some closure. Thanks again!
I’ve tried to get PCs to work, here’s a thread with me being shot down!
In that situation there were other methods we could use to get a similar result.
Just as a point of interest, I noticed that you can extract just the boundary points from the topo, is there perhaps a way of refining the points you’re using with other methods then feeding them back in?
As I say it would be easier to discuss with a simple test file.
Cheers,
Mark
Edit: There is also an Add Points method… can you back the points to make it concave after perhaps? Or move points?