How to make "Isolated Point" in VBScript?
How to make "Isolated Point" in VBScript?
(OP)
Hello, guys

Like upper picture, I wnat to make a isolated point in vbscript.
Also I tried to make this on recording macro. But It was failed.
Could you tell me how to make it?
Thanks a lot,
Mr. Oh

Like upper picture, I wnat to make a isolated point in vbscript.
Also I tried to make this on recording macro. But It was failed.
Could you tell me how to make it?
Thanks a lot,
Mr. Oh





RE: How to make "Isolated Point" in VBScript?
Select the point then CATIA.StartCommand("Isolate")
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: How to make "Isolated Point" in VBScript?
I mean I want to creat a isolated point.
Yesterday, I tried to like this format. This works also what I want.
But I think this is very LONG script. I just want to creat one isolated point. just one point.
So could you creat it as simply?
Set hybridShapeFactory1 = part1.HybridShapeFactory
Set hybridShapePointCoord1 = hybridShapeFactory1.AddNewPointCoord(0, 0, 0)
hybridBody1.AppendHybridShape hybridShapePointCoord1
part1.InWorkObject = hybridShapePointCoord1
part1.Update
Set reference2 = part1.CreateReferenceFromObject(hybridShapePointCoord1)
Set hybridShapePointExplicit1 = hybridShapeFactory1.AddNewPointDatum(reference2)
hybridBody1.AppendHybridShape hybridShapePointExplicit1
part1.InWorkObject = hybridShapePointExplicit1
hybridShapeFactory1.DeleteObjectForDatum reference2
part1.Update
RE: How to make "Isolated Point" in VBScript?
I am trying to make a replace feature. It also works with startcommand function?
RE: How to make "Isolated Point" in VBScript?
RE: How to make "Isolated Point" in VBScript?
RE: How to make "Isolated Point" in VBScript?
You can shorten the recorded variable names and remove unnecessary lines to shorten it. Also, some creation features do not need a reference...I can't remember if PointDatum is one, but you can give it a try.
Also, use the code blocks. Below code takes you from 11 lines to 7.
CODE -->
RE: How to make "Isolated Point" in VBScript?