While writing a macro on VBScript to find the nearest two points in given two CATIA surfaces, I am facing some difficulty. It would be great if I could find a pre-defined function of CATIA or an algorithm to do the same.
1
There are 1 answers
Related Questions in VBA
- Toggle "conversation view" in Outlook with VBA
- VBA query - sort text in alphabetical order in Word
- Excel - Visual Basic, macro with autofill "1"
- Getting Run-time error '13': Type Mismatch using .Find
- Getting website metadata (Excel VBA/Python)
- How to use VBA to bold just some text
- VBA Code to filter and get values from csv to excel worksheet
- Azure Batch for Excel VBA
- How can i printpreview multiple excel sheets, with the names of the sheets located in a range?
- Comparison the data of two row and unique number highlight and show below of it
- Is there a way to pass Today's date as a command line argument to Excel from a Windows Task Scheduler Job
- Xero Upload Invoice file using API
- Visual Basic For Application Related Question
- Trying to give color to column field headers in pivot table with vba
- General error handler: If any error in UserForm other than msgBox: Err.Description
Related Questions in VBSCRIPT
- use vbScript to detect whether the laptop is connecting the power supply
- Error Code 800A03EC in VBS when pasting formula into Excel
- Why is the WMI win32_Process commandline property is giving null for only some processes of non-admin users?
- Group By value to store as a Variable
- 0014 W3602 : Error 0 on line 19, column 1: : will trying to get value from table
- error "800A004C" with too long path with recursive folder serarch
- timer is not working for message box in vb script
- Comparing numeric values not as expected (VBScript)
- Received Script that is a possible virus. What does it do?
- Excel VBA Macro after M365 migration "Runtime error '380': A script engine for the specified language can not be created"
- Can I skip PDF form fields from being filled in an FDF?
- run VBScripts in DosBox-X
- Can I run a program and interfere with its interface using VBS? Possibly with sendkey/click?
- Varchar(max) causing other other accesses of the record set to return null
- Fixing roman numerals with regex and VBScript
Related Questions in CATIA
- Catia V5 Dynamic Hidden Line Removal With Macro Please Help Me
- Could you please provide instructions or Code on exporting point coordinates from a CATIA product to Excel using VB?
- NET (Core) COM connection to Catia v5/v6 issue
- How to "Explore" a physical product using its name in Catia v6/3Dx with VBA?
- preventing adding suffix (.1) to instance name after CUT and PAST in Catia vb script
- selecting the un-used connecter and harness supports in Catia electrical harness in vb scripting
- Adding Tree list in list box in catia vba
- get the name of selected harness branch in catia electrical harness
- In CATIA V5 CAA, can we retrieve an approximation of a CATIGSMSpline as a CATCurve?
- text file name and path with variable
- Error initializing iText PDF document when called from DLL via Catia, but not via exe
- Angular coordinates of catia product
- 3DExperience: switch product to edit mode
- In Catia V5 CAA, how to update a CATPart by code?
- how to keep model in isometric view in catia vb scripting macro (not in drawing workbench)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Not an easy algorithm.
Divide your 3D space into 10 units in the X direction, 10 units in the Y direction, 10 units in the Z direction. You now have a 3D space which contains 1000 little cubes. Analyze each cube in space. Does the surface #1 cross that cube? Does Surface #2 cross that cube? If so, keep a record of that. Each cube of this workspace could have no surfaces crossing, both surfaces crossing or a crossing of either surface #1 or #2.
If any cubes have both surfaces crossing, the next step there.
do the divide by 10 units in each direction again (recursively) and do the analysis again. (etc...)
At some point you will have a 3D space where no subdivided cube has both curves crossing it. Run thru an analysis program to determine the distance between cubes with surface crossing. You should be able to find which two cubes are a minimum distance apart.
Use continued recursion and subdivision to optimize a solution.
Note: if you are using JavaScript, a library like Sylvester.js is REALLY handy for this problem.