NX VB Journal - How to Use uf.modl.askfacedata
NX VB Journal - How to Use uf.modl.askfacedata
(OP)
I have defined the following variables
And now I am inquiring about some face properties using:
NX is telling me "Value of type 'Double' cannot be converted to '1-dimensional array of Double'" twice, but I don't know what it is referring to. According to the NXOpen .Net API reference I've defined all the variables with their correct data types.
Or have I?
Can someone help?
Thanks,
Jeff
CODE
dim face_t As tag
dim ftype as integer
dim pnts(4,3) as double
dim vecv(4,3) as double
dim box(6) as double
dim junk2 as double = Nothing
dim junk1 as integer = Nothing
dim ftype as integer
dim pnts(4,3) as double
dim vecv(4,3) as double
dim box(6) as double
dim junk2 as double = Nothing
dim junk1 as integer = Nothing
CODE
ufs.modl.askfacedata(face_t, ftype, pnts(jj,0), vecv(jj,0), box, junk2, junk2, junk1)
Or have I?
Can someone help?
Thanks,
Jeff





RE: NX VB Journal - How to Use uf.modl.askfacedata
CODE
dim ftype as integer
dim pnts(2) as double
dim vecv(2) as double
dim box(5) as double
dim junk2 as double = Nothing
dim junk1 as integer = Nothing
ufs.modl.askfacedata(face_t, ftype, pnts, vecv, box, junk2, junk2, junk1)
You might get an error because you are passing in junk2 twice. This variable will be used as an output from the function; it may be OK, or it may throw an error because it is trying to write 2 different outputs to the same variable.
www.nxjournaling.com
RE: NX VB Journal - How to Use uf.modl.askfacedata
Also, if I want to have data for multiple points on the surface is it not possible to use 2d arrays, somehow?
Thanks,
Jeff
RE: NX VB Journal - How to Use uf.modl.askfacedata
- pnts(0)
- pnts(1)
- pnts(2)
The same holds true for the vector array.According to the help file, it doesn't look like you get to input the point and vector information for this function (they are outputs only). What information are you looking to get? Perhaps UF_MODL_ask_face_props would be more appropriate, it allows you to input the face tag and UV parameters you are interested in.
www.nxjournaling.com
RE: NX VB Journal - How to Use uf.modl.askfacedata
Jeff
RE: NX VB Journal - How to Use uf.modl.askfacedata
There are ways to define a different lower bound, but I would discourage their use unless you have a really good reason.
www.nxjournaling.com
RE: NX VB Journal - How to Use uf.modl.askfacedata
Jeff