Piping add-on New feature not working all the time. ***SOLVED***

#1
I'm in the process of adding an extra feature to my piping add-on. (NOTE: images / sld's not completed yet)
Check Valves
CV dialog.png
CV dialog.png (104.38 KiB) Viewed 1323 times
.
I have progressed the first valve selection, Plain to the point of inserting the completed valve.
CV completed dialog.png
CV completed dialog.png (54.3 KiB) Viewed 1323 times
The code behind this works fine as I step through when checking, but when I try this addition in normal use it sometimes works and sometimes doesn't.

I get this error:
Command: _filletedge
Current settings: mode = TRIM, radius = 3.9000
Select an edge: [Chain/Loop/Radius]: R
Fillet radius <3.9000>: 3.90000
Select an edge: [Chain/Loop/Radius]: 357.5000,0,0
Select an edge: [Chain/Loop/Radius]:
Press Enter to accept the fillet or [Radius]:
Command:
Command: _filletedge
Current settings: mode = TRIM, radius = 3.9000
Select an edge: [Chain/Loop/Radius]: R
Fillet radius <3.9000>: 3.90000
Select an edge: [Chain/Loop/Radius]: 357.5000,0,222.0000
Select an edge: [Chain/Loop/Radius]:
Press Enter to accept the fillet or [Radius]:
Modeling Operation Error:
blends too complex to reorder.
Unable to fillet the 3dSolid.
error: Function cancelled
Command:
Command: '_PMTHIST

Here is the code (lines 9571/9572 in the attaced file):

Code: Select all

		(command "_filletedge" "R" EXRAD# (strcat (rtos VRAD#) ",0,0" ) "" "" "")
		(command "_filletedge" "R" EXRAD# (strcat (rtos VRAD#) ",0," (rtos FTF#)) "" "" "") 
https://www.dropbox.com/scl/fi/pyenmg61 ... zg0v2&dl=0

Any thoughts pls?
Last edited by sln8458 on Sun Nov 12, 2023 2:06 am, edited 1 time in total.
CMS INTELLICAD 12.1.243.153262.PE+.VC16.x64.CMS121

i9-12900k / 64gb-3200 - NVIDIA GeForce TRX 3060 Ti 8Gb Windows 11 Pro
www.stylemarkdesigns.co.uk

Re: Piping add-on New feature not working all the time.

#3
Hi Pat,
you had selected the 25" valve ?

That part of the code is applying a 'fillet radius' to the outer edges of a vertical cylinder.
Bottom edge 357.5000,0,0
Top edge 357.5000,0 222.0000
The cylinder is 222 high. (Z)

I have generated the valve body profile via Entmake & revolved that to create the body
However there are 2 areas that then require an infill to be added 180deg appart (12 & 6 Oclock)
In the code that sometimes fails I an creating these infills.

I had a thought overnight, which I will test today.
CMS INTELLICAD 12.1.243.153262.PE+.VC16.x64.CMS121

i9-12900k / 64gb-3200 - NVIDIA GeForce TRX 3060 Ti 8Gb Windows 11 Pro
www.stylemarkdesigns.co.uk

Re: Piping add-on New feature not working all the time.

#4
So I think I have traced the issue,
Screen Zoom, ie if the screen is too far zoomed out the code does not select the individual 'edge' required.
When I am testing the code step by step I am zoomed in close to the origin (0,0,0) so I can actually see what is happening.
When I am testing the final completed code, as it is expected to be used, that is when the issue presents.

Is there a setting I can change to overcome this?

.
CMS INTELLICAD 12.1.243.153262.PE+.VC16.x64.CMS121

i9-12900k / 64gb-3200 - NVIDIA GeForce TRX 3060 Ti 8Gb Windows 11 Pro
www.stylemarkdesigns.co.uk