VBA Equivalent of VLAX-GET ???

VBA Equivalent of VLAX-GET ???

Anonymous
Not applicable
919 Views
15 Replies
Message 1 of 16

VBA Equivalent of VLAX-GET ???

Anonymous
Not applicable
With vlax-get, you can pass it an object and a string and it will return the property. Is there an equivalent in VBA? In other words if you have a property name in a string variable, how can you extract a variant value from an object like an acadobj, such as "TextString" or "Color"? Thanks in advance! Terry
0 Likes
920 Views
15 Replies
Replies (15)
Message 2 of 16

Anonymous
Not applicable
CallByName ... (it's quite useful). "Terry W. Dotson" wrote in message news:[email protected]... > With vlax-get, you can pass it an object and a string and it will return > the property. Is there an equivalent in VBA? In other words if you > have a property name in a string variable, how can you extract a variant > value from an object like an acadobj, such as "TextString" or "Color"? > > Thanks in advance! > > Terry
0 Likes
Message 3 of 16

Anonymous
Not applicable
michael puckett wrote: > CallByName ... Much appreciated, but its not available in 2000, which I have to support. Terry
0 Likes
Message 4 of 16

Anonymous
Not applicable
That's surprising. You have VB Pro/Ent - Why not wrap it in a tiny dll (w/other functionality)? "Terry W. Dotson" wrote in message news:[email protected]... michael puckett wrote: > CallByName ... Much appreciated, but its not available in 2000, which I have to support. Terry
0 Likes
Message 5 of 16

Anonymous
Not applicable
Terry, Did you consider using VLAX class, like in http://code.acadx.com/? Regards, Maksim Sestic "Terry W. Dotson" wrote in message news:[email protected]... > michael puckett wrote: > > > CallByName ... > > Much appreciated, but its not available in 2000, which I have to > support. > > Terry
0 Likes
Message 6 of 16

Anonymous
Not applicable
lol yer killin' me. "Maksim Sestic" wrote in message news:404dd19e_3@newsprd01... Terry, Did you consider using VLAX class, like in http://code.acadx.com/? Regards, Maksim Sestic "Terry W. Dotson" wrote in message news:[email protected]... > michael puckett wrote: > > > CallByName ... > > Much appreciated, but its not available in 2000, which I have to > support. > > Terry
0 Likes
Message 7 of 16

Anonymous
Not applicable
michael puckett wrote: > lol yer killin' me. What do you find funnt? Maksim did not appear to engaging in an attempt at humor. -- There are 10 kinds of people. Those who understand binary and those who don't. http://code.acadx.com (Pull the pin to reply)
0 Likes
Message 8 of 16

Anonymous
Not applicable
Easy oh sensitive one: Nothing against your vlax class -> I just find it funny suggesting Terry use your code in one of his commercial apps. I could be wrong, but I just don't see him doing it ... "Frank Oquendo" wrote in message news:404ded3e$1_3@newsprd01... michael puckett wrote: > lol yer killin' me. What do you find funnt? Maksim did not appear to engaging in an attempt at humor. -- There are 10 kinds of people. Those who understand binary and those who don't. http://code.acadx.com (Pull the pin to reply)
0 Likes
Message 9 of 16

Anonymous
Not applicable
🙂 Oh, it seems that I made very (very) stupid mistake with that hillarious reply. My excuses to Terry :-) "Frank Oquendo" wrote in message news:404ded3e$1_3@newsprd01... > michael puckett wrote: > > lol yer killin' me. > > What do you find funnt? Maksim did not appear to engaging in an attempt at > humor. > > -- > There are 10 kinds of people. Those who understand binary and those who > don't. > > http://code.acadx.com > (Pull the pin to reply) > >
0 Likes
Message 10 of 16

Anonymous
Not applicable
It was not a stupid mistake Maksim; I just thought it was funny (I have a strange sense of humour). "Maksim Sestic" wrote in message news:404df2a8_2@newsprd01... :-) Oh, it seems that I made very (very) stupid mistake with that hillarious reply. My excuses to Terry :-) "Frank Oquendo" wrote in message news:404ded3e$1_3@newsprd01... > michael puckett wrote: > > lol yer killin' me. > > What do you find funnt? Maksim did not appear to engaging in an attempt at > humor. > > -- > There are 10 kinds of people. Those who understand binary and those who > don't. > > http://code.acadx.com > (Pull the pin to reply) > >
0 Likes
Message 11 of 16

Anonymous
Not applicable
I just had no idea what's Terry working on until your reply and my visit to Terry's website. Now my excuses to Frenk, too :-) "michael puckett" wrote in message news:404defd3$1_2@newsprd01... > Easy oh sensitive one: Nothing against your > vlax class -> I just find it funny suggesting > Terry use your code in one of his commercial > apps. I could be wrong, but I just don't see > him doing it ... > > "Frank Oquendo" wrote in message > news:404ded3e$1_3@newsprd01... > michael puckett wrote: > > lol yer killin' me. > > What do you find funnt? Maksim did not appear to engaging in > an attempt at > humor. > > -- > There are 10 kinds of people. Those who understand binary > and those who > don't. > > http://code.acadx.com > (Pull the pin to reply) > >
0 Likes
Message 12 of 16

Anonymous
Not applicable
michael puckett wrote: > That's surprising. You have VB Pro/Ent - Why not wrap it > in a tiny dll (w/other functionality)? Since I had a reasonably limited set, I just used some select case statements. These days I'm also trying to limit DLL dependencies. :-) Thanks, Terry
0 Likes
Message 13 of 16

Anonymous
Not applicable
michael puckett wrote: > It was not a stupid mistake Maksim; I just thought > it was funny (I have a strange sense of humour). Everybody relax. :!) Franks code is not substandard in any way, I just avoid all dependencies except for Autodesk and Microsoft. Terry
0 Likes
Message 14 of 16

Anonymous
Not applicable
Whatever works reliably :) Re: Limiting dll dependencies, if it's a case of minimizing file distributions you can always bind your dlls in a parent exe using pebundle type utilities. Notwithstanding the compression / security aspects of same. Cheers. "Terry W. Dotson" wrote in message news:[email protected]... michael puckett wrote: > That's surprising. You have VB Pro/Ent - Why not wrap it > in a tiny dll (w/other functionality)? Since I had a reasonably limited set, I just used some select case statements. These days I'm also trying to limit DLL dependencies. :-) Thanks, Terry
0 Likes
Message 15 of 16

Anonymous
Not applicable
Sipping tea: I'm relaxed, and just to make clear, I wasn't suggesting Franks code was inferior. Cheers all :) "Terry W. Dotson" wrote in message news:[email protected]... michael puckett wrote: > It was not a stupid mistake Maksim; I just thought > it was funny (I have a strange sense of humour). Everybody relax. :!) Franks code is not substandard in any way, I just avoid all dependencies except for Autodesk and Microsoft. Terry
0 Likes
Message 16 of 16

Speed_CAD
Collaborator
Collaborator
Hi...

I did a DLL for me. But just is for TEXT Entity.

Example

Option Explicit

Private P As New Get_Property

Private Sub cmdPropiedad_Click()
Dim objsel As AcadText
Dim pnt As Variant
Dim PntInsercion As Variant
Dim sTexto As String
Dim txtColor As Long
utilGet.GetEntity objsel, pnt, vbCr & "Seleccione texto: "
'Dato por defecto TextString
sTexto = P.VB_Get_Property(objsel)
'Punto de Insercion del texto
PntInsercion = P.VB_Get_Property(objsel, "insertionpoint")
'Color del texto
txtColor = P.VB_Get_Property(objsel, "color")
'etc... etc...
End Sub
Mauricio Jorquera
0 Likes