×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to use NXOpen.BlockStyler.PropertyList.GetPoint()?

How to use NXOpen.BlockStyler.PropertyList.GetPoint()?

How to use NXOpen.BlockStyler.PropertyList.GetPoint()?

(OP)
Hi, I downloaded a sample code at siemenes.com.

[Download sample code]
https://solutions.industrysoftware.automation.siem...

Runned but a error was appeared.

----Error Message----
NXOpen.NXException: Invalid property name for the block. See syslog for details
NXOpen.BlockStyler.PropertyList.GetPoint(String propertyName)
idsymbol.apply_cb() file c:\Tempugs\NXJournals94304\journal.vb: line 332[/highlight]




Here is apply_cb callback.
'------------------------------------------------------------------------------
'Callback Name: apply_cb
'------------------------------------------------------------------------------
Public Function apply_cb() As Integer
Dim errorCode As Integer = 0
Try

'---- Enter your callback code here -----
Dim objects As TaggedObject() = selection0.GetProperties.GetTaggedObjectVector("SelectedObjects")
Dim cursor As Point3d = selection0.GetProperties.GetPoint("PickPoint") <- line: 332
Dim screen_pos As Point3d = cursorLocation0.GetProperties.GetPoint("CursorLocation")
Dim view1 As DraftingView = Nothing
Dim obj_coords As Point3d = Nothing

view1 = CType(workPart.DraftingViews.FindObject(vwname), Drawings.DraftingView)
obj_coords = get_position_on_object(objects(0), view1, cursor)

create_idsymbol(objects(0), obj_coords, screen_pos, view1, nr)
nr = nr + 1

Catch ex As Exception

'---- Enter your exception handling code here -----
errorCode = 1
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString)
End Try
apply_cb = errorCode
End Function




So I printed PropertyNames of 'objects' as below but 'PickPoint' was not found.

BlockID
Show
Enable
Group
Expanded
StepStatus
Cue
SelectMode
Bitmap
SelectionFilter
PointOverlay
SnapPointTypesEnabled
SnapPointTypesOnByDefault
MaximumScope
LabelString
ToolTip
CreateInterpartLink
InterpartSelection
AutomaticProgression
SelectedObjects
BlendVirtualCurveOverlay



I wonder 'PickPoint' is not available in NX 7.5?

If it is now avalable, how to get a point?

RE: How to use NXOpen.BlockStyler.PropertyList.GetPoint()?

Looks like PickPoint was added in NX8.5

Graham Inchley, Systems Developer.
NX6, NX8.5(testing)
www.sandvik.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources