Is there any revitapi method to achieve this?
or can be achieved by this?
import numpy as np
from scipy.spatial import cKDTree
in cpython?
Is there any revitapi method to achieve this?
or can be achieved by this?
import numpy as np
from scipy.spatial import cKDTree
in cpython?
Do you have already installed the module? - numpy
I struggle to install Sympy correctly ![]()
This should work: Dynamo Dictionary
In python thatâd be something like
prunedPoints = Point.PruneDuplicates(originalPnts, 0.1)
Assuming youâre using CPython3, and have followed the instructions here: Customizing Dynamo's Python 3 installation ¡ DynamoDS/Dynamo Wiki ¡ GitHub
Which step are you stuck on?
Hi, I decide to code it without dynamo
no ![]()
I canât import numpy yet ![]()
Directly placing modules is likely going to cause some issues; best to utilize the pypi tool.
Can you show what happens when you open the start menu and search for âcmdâ ? GIF or screen recording would be best.

![]()
python38.zip
.
Uncomment to run site.main() automatically
import site

in the discription the use a other window
This will be a lot more work to manage as not only will you need to get these files onto your system following the link I posted above, but youâll also have to manage the deployment thereof.
The Revit API does have the capability to compare XYZs in terms of âalmost being equal toâ, with this method: IsAlmostEqualTo Method (XYZ, Double). So you can pop a point out, test all other points in the list for almost being equal and remove them from the list if they return true, otherwise continue on. Repeat that list until the original list of XYZ values is 0.
Not the most effective by any means (a means of grouping the XYZ values into smaller groups would help), but itâd do the trick.
I may be seeing this wrong, but you appear to be working in a visual studio window instead of the windows command prompt; not sure thatâll do the trick as itâd configure your development environment but perhaps not the Dynamo one.
@jacob.small , i have no windows comment prompt ⌠can i simple install it?
If you open the start menu and type âcmdâ what do you see for options? Sadly Iâve got a bit of a localization handicap here.

i have just these, is there a shortcut maybe? or via taskmanager? @jacob.small