Jump to content


Adding xData to object?


  • You cannot reply to this topic
No replies to this topic

#1 Mucip İLBUĞA

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 08 July 2024 - 12:16 PM

Hi,
I use below code incase of assigning Data to an object. But Could not success?

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
	    Dim nokta As Object
	    Dim blok As AcadBlockReference
	    nokta = utilty.GetPoint("0,0,0", "Blok eklenecek Noktayı seç")
	    blok = mSpace.InsertBlock(nokta, "ilk", 1, 1, 1, 0,)

	    blok.SetXData("string", "Deneme")

    End Sub


Regards,
Mucip:)

#2 Dsw

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationItaly

Posted 08 July 2024 - 01:20 PM

Hi,
both arguments of "SetXData" are variant, "SetXdata" is well documented here

Regards
Rossano Praderi
----
My open-source and freeware projects
https://sourceforge....ftware/profile/

#3 Mucip İLBUĞA

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 08 July 2024 - 03:41 PM

Hi,
I got it thanks.

Well How can I see xData values from NanoCAD GUI?

Regards,
Mucip:)

#4 Dsw

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationItaly

Posted 09 July 2024 - 03:39 AM

Hi,
which release of nanoCAD are you using?
----
My open-source and freeware projects
https://sourceforge....ftware/profile/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users