←  Technical Questions

nanoCAD forum

»

Adding xData to object?

Mucip İLBUĞA's Photo Mucip İLBUĞA 08 Jul 2024

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:)
Quote

Dsw's Photo Dsw 08 Jul 2024

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

Regards
Rossano Praderi
Quote

Mucip İLBUĞA's Photo Mucip İLBUĞA 08 Jul 2024

Hi,
I got it thanks.

Well How can I see xData values from NanoCAD GUI?

Regards,
Mucip:)
Quote

Dsw's Photo Dsw 09 Jul 2024

Hi,
which release of nanoCAD are you using?
Quote