Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Register Today
COE 2009 Annual PLM Conference & TechniFair

COE DISCUSSION FORUM
Subject: know is there is a way to know when you measure distance surface to point, which side the point is on?

You are not authorized to post a reply.   
Author Messages
DAVE_FRANK


13 Aug 2008 02:01 PM

Hi super users,

 

I would like to know is there is a way to know when you measure distance surface to point,  which side the point is on.

 

There are 3 different conditions:

1) There is a solid. inside or outside.

2) there is not a solid, only a surface.

3) If there are multiple surface, it is possible that the surface normal's are not all pointing in the same directions

 

Could you have a plus or minus on the measure result?

Could you have a plus or minus, be reflected in colors (Blue + Red -)

 

Now with NCL (APT),  I has a routine that would get the distance from the point to the surface, and also a vector. so the routine could change the color based on an intol or an outtol.  The routine also used the vector's K value to determine if it was above the surface or below, and change the color ( graphic attributes).

 

On solids, is there a way to know if internal or external to the solid.

I assume the answer is .... Yes with VB. I am wondering if there is a non VB way.

I have already added this to my list of things to do with VB, after I complete VB training  ( I hope to start soon)

 

if you look at the 2 figures I posted, the one with lots of points, on the left side, go from minus to plus, but I need to zoom zoom zoom, in order to tell.

 

 

Thanks in advance

Dave










Chief Instigator MFG ‘PAC-MEN’ Group dfrank nospam @ forrestmachining.nospam.com
Programmers Advising Catia - Making Enhancements Needed
Dell 690 XEON dual QUADZILLA core, 8 gig ram, dual FX4500,SLI
MBERRY

13 Aug 2008 02:46 PM
Hi Doug,

Is all the data in the same part? If so, you evaluate these conditions with knowledgeware.

To know if the point inside the solid, use the formula....Length = distance(Point, body)
If it is zero it is on or inside the solid, otherwise it is outside

To know which side of the surfaces the points are on, use something like this....
Length = distancedir(point, surface, direction(0mm,1mm,0mm))
This example would tell you the +/- distance in the Y dir

Another thing to consider is you could integrate these formulas into a KWE rule (if you have the license) and auto-color the points based on your specific rules like which +/- or even different colors for distance ranges.

Just some ideas...

-Mike
DAVE_FRANK


13 Aug 2008 03:30 PM

Very cool Mike 

 

 I desire to Learn how to do this. If you can give me a few buzzwords to search in help, I will read up to learn how to take your idea into the end zone. Hopefully I may find some exercises, in the online docs

  

I have Knowledge Advisor, along with  Product Knowledge Template, so I should be able to create rules, if my salesman knew what he was doing.

  

This is a Product, but I can always copy paste, or generate a part from product to bring it together.

 

What this part  is,  is a tool that has had too much sun. Like ten years. It has distorted, and I am comparing an IGES file of actual inspection points, to the model. The end goal is to best fit a cleanup, and re-machine it.

 

I am rotating and translating the Catpart that contains the points, and then using measure for analysis.

 

Best Regards,

Dave


Chief Instigator MFG ‘PAC-MEN’ Group dfrank nospam @ forrestmachining.nospam.com
Programmers Advising Catia - Making Enhancements Needed
Dell 690 XEON dual QUADZILLA core, 8 gig ram, dual FX4500,SLI
MBERRY

14 Aug 2008 07:05 AM
Hi Dave,

Since you said you have KWA, try this (for your solid example). It should give you the flavor...

-Mike

1. Create an empty list

2. Add a formula on it, List.1 = `Geometrical Set.1`.Query("Point","") (This will always fill the on the fly list with all points in geo set 1)

3. Create a rule like this (it will color points based on their distance to the partbody solid and name them based on their distance)
Also, go to the rule properties and turn off the synchronous option

Let i(Integer)
Let p(Point)

i=1
for i while i<= List.1\ListSize
{ p = List.1->GetItem(i)
d = distance(p,PartBody)
p.Name = "Point_" + i + "_" + d + " deviation"
if d == 0mm
{ p.Color = "Green" }
else
{ p.Color = "Red" }
}
DAVE_FRANK


14 Aug 2008 11:58 AM

Thanks a bunch Mike,

I will dive into the docs, and add this to my abilities. I have a training budget, but try to learn as much as I can myself, cause the budget is not bottomless.

PS. Any chance you are in the LA area? I am organizing a RUG and we will have a meeting in a few weeks.

Dave

 

 


Chief Instigator MFG ‘PAC-MEN’ Group dfrank nospam @ forrestmachining.nospam.com
Programmers Advising Catia - Making Enhancements Needed
Dell 690 XEON dual QUADZILLA core, 8 gig ram, dual FX4500,SLI
MBERRY

14 Aug 2008 12:13 PM
I saw your other posts about the socal RUG, but I am in OH...

Knowledgeware and automation are areas where I think it is key to find some experienced people to learn from. The docs and training will get you going, but it takes a lot of hands on practice to fully understand what is there and what you can do. If you need help in these areas, make some posts to the KBE and/or Programming forums. I have ~8yrs experience with CATIA Knowledgeware and automation (VB/VBA) so I try to help in these forums when I have time and there is a steady good group of other experienced people there as well... Good luck.

Mike
DAVE_FRANK


22 Aug 2008 12:57 PM
Who is you football team?, you know mine, from my avatar
Dave

Chief Instigator MFG ‘PAC-MEN’ Group dfrank nospam @ forrestmachining.nospam.com
Programmers Advising Catia - Making Enhancements Needed
Dell 690 XEON dual QUADZILLA core, 8 gig ram, dual FX4500,SLI
PBARNA


22 Aug 2008 01:01 PM
Denver Bronco's

Philip Barna
Arden Engineering Inc.
Tooling Design\Programming 3-5 Axis
You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 > know is there is a way to know when you measure distance surface to point, which side the point is on?



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)