• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

access to autocad blocks with inventor bees

UomoOmbra

Guest
Good day to all,

I have the need to access the attributes of autocad blocks inserted in the table of inventor ( .dwg file) by vba code, someone can tell me how to do or indicate where I can find examples?
I've already looked for autodesk but I couldn't find anything!

Thank you.
 
I recommend:
a) to search how to manage autocad blocks in autocad rather than inventor blocks in autocad, more answers come out;
b) add references to the VBA of inventor to autocad libraries and see what the editor proposes after defining the blocks;
c) to register on the forum, what is more repeated in a thousand discussions, always liked to young and old, and that makes the other users want to get a little bit more to help you:tongue:.

never made these hybrids so I can't give you quick answers.
Bye!
 
I recommend:
a) to search how to manage autocad blocks in autocad rather than inventor blocks in autocad, more answers come out;
b) add references to the VBA of inventor to autocad libraries and see what the editor proposes after defining the blocks;
c) to register on the forum, what is more repeated in a thousand discussions, always liked to young and old, and that makes the other users want to get a little bit more to help you:tongue:.

never made these hybrids so I can't give you quick answers.
Bye!
as a quote with great anger the point c...
 
@catafratto,
a) if I need to manage autocad blocks in inventor is because I want to complete the design in inventor and not in autocad, as it happens now, as I do not want to manage 2 documents practically similar
b) access modes to inventor objects via vba are not simply triggering references
c) sorry, but you're the moderator?

@catafratto & tarkus
I really thought I'd find concrete help and no senseless phrases
 
@catafratto,

c) sorry, but you're the moderator?

@catafratto & tarkus
I really thought I'd find concrete help and no senseless phrases
start with the wrong foot dear man shadow.. .

1) cataract, to predict whether it is moderator or not, responded politely and above all responded to you with a council (in three), one of which, among other things, reiterated by another user. courtesy that doesn't seem to have returned.

2) concrete help would also be given to you.
the phrases posted as advice are very clear, the fact that you find them without any sense makes it complicated also to give you a possible technical answer to your question, which, given the subject, could be not simple.

to get a dedicated and advanced service like this, question for which you will probably find nothing in guides or on the net, addressing companies that deal with solutions of this type you could ask from x00 to x000 euros of quote.

now to have only one possibility and opportunity to have a completely free response from extremely competent people (such as the two users who have tried to suggest you) in this forum... it would not have been better:

1) read the forum rules
2) if you forget point 1, it happens is not a tragedy, try to repair after someone made us observe it
3) observe a minimum of kindness and perhaps leave aside irony and extrafoctance

?

Good luck!
 
dear Pompeo79,
1) the question if catrafa is the modrator refers to the fact that it suggests me to register at the forum, which I did in 2010 (other than how I could create a discussion!)
So I wondered if this wasn't a moderator's relevance.

2) also my question is clear and simple. Would you mind explaining the phrase from tarkus and how does my question answer?

Actually, I haven't been in the forum for several years, so I've been rereading all 13 rules... I don't think I've contravened any of them.

It is not true that on the net there are no examples of codes in vba or .net for inventor, in the past I have already found good ideas, but on how to access a block in inventor I couldn't find anything yet (I also wrote it in the initial post).

I hope to receive concrete help, that is: an example of code or a reference to where I can find something about it.

I don't want to be misunderstood.
 
Not that I care about your problems so much, but since you retire to the ball, I'll point out that:
-Whoever, even not moderator, think can express themselves about the behaviour of a user, have done so several times to me and I have always accepted (and possibly debated) criticisms without asking what was the "grade" of people who expressed themselves about what I wrote.
-you will also be registered on the forum in 2010, but at the time of your discussion it appeared on your profile that you were at message #1, so to the first message. maybe a system error?
- what catafract invited you to do and that you haven't done yet, was to comply with what was written in the first discussion of the inventor forum:
http://www.cad3d.it/forum1/showthread.php?132-nuovi-utenti-inventor-presentatevi-quiperhaps you have not read with due attention the part related to important discussions and rules of the inventor section:
more or less it says that when you play the doorbell at someone's house, you tell him who you are and for education also what you do!
-My intervention was also only to quote what was written by catafract about the "c" point of his post and not to add anything else about your problem, since I have no knowledge of it, but the cataphrastus has already replied that according to him you are trying to use a counterproductive method.

If then all of these seem like meaningless phrases, do as you want.. .
Let me give you some advice:
If this is your only way to approach the forums, stay out of it.
 
No, I actually did wrong, I wrote "register" instead of presenting... I ask for venia.
 
dear tarkus,

I would like to point out that I wasn't the one who "get you out" but you were the one who responded to my discussion, otherwise for your own admission without any cognition and interest, only to "quote" (one day you will explain the meaning of this slang) as written by paper.

I have as the impression that when you read my post you thought: but look at this nap (1° message) still has the dirty mouse of milk! It will be good to teach them how to work and stand in the world!

I have already explained why I need to solve the problem in inventor and not in autocad, where I have already written a small program to access the blocks via vba. so as I have to solve this problem I continued to look for and looking for I found an example that works, I have already tested it:
[Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [B
subblock editattributes()

if thisapplication.activedocumenttype < kdrawingdocumentobject then exit sub

dim odoc as inventor.drawingdocument
set odoc = thisapplication.activedocument


dim acadblocks as autocadblocks
set acadblocks = odoc.activesheet.autocadblocks

dim acadblock as autocadblock

'' this will cycle through all autocad blocks in the currently open drawing.
'' to reference a block you can reference it by name .acadblocks.item("name of block")
'' or by its index number
for each acadblock in acadblocks

'' this is the name of the autocad block which is currently being referenced.
debug.print acadblock.name
msgbox acadblock.name

dim stags() as string
dim sattr() as string

'' get the prompted entry tags to view the values
call acadblock.getprompttextvalues(stags(), sattr())

dim i as integer
cycle through and view values
for i = 0 to ubound(stags)

debug.print stags(s) & " = "; sattr(s)
'' here is how to edit a specific value
if stags(s) = "note_visivo_2" then
sattr(s) = "paper"
debug.print stags(s) & " = "; sattr(s)
end if

next

'' to save the changes you run the .setprompttextvalues method
call acadblock.setprompttextvalues(stags(), sattr())

next
end
(Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep (Bleep) (Bleep) (Bleep) (Bleep) (Bleep (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep) (Bleep
Maybe it can be useful to someone.

Now I have to solve the next step (to access an excel file from which I extract the info to be inserted in the blocks).... but be quiet, I will not open another discussion.

@factory
No problem!

Thank you all.

ps as soon as I have time I will present myself
 
dear Pompeo79,


I would like to point out that I wasn't the one who "get you out" but you were the one who responded to my discussion, otherwise for your own admission without any cognition and interest, only to "quote" (one day you will explain the meaning of this slang) as written by paper.

I have as the impression that when you read my post you thought: but look at this nap (1° message) still has the dirty mouse of milk! It will be good to teach them how to work and stand in the world!

I have already explained why I need to solve the problem in inventor and not in autocad, where I have already written a small program to access the blocks via vba. so as I have to solve this problem I continued to look for and looking for I found an example that works, I have already tested it:
[Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep] [Bleep [Bleep] [B
ps as soon as I have time I will present myself
Look what you write:
here I "retires at stake and rather offensive or at least rude:
" @catafratto & tarkus
I really thought I'd find concrete help and no senseless phrases "

without meaning can be your affirmation:
"I have the impression that when you read my post you thought: but look at this nap (1° message) still has the dirty mouse of milk! It will be good to teach them how to work and stand in the world!"

then, for your knowledge I explain that listing in this case (and in all forums) means sharing, supporting the opinion expressed by a user.

Of course, with everything you wrote, a minute to go through the presentations you could also find it.
But maybe you're above these things.

step and close. :36_1_1:
 
c) to register for the forum
as a quote with great anger the point c...
c) sorry, but you're the moderator?

@catafratto & tarkus
I really thought I'd find concrete help and no senseless phrases
start with the wrong foot dear man shadow.. .
(cut) one of which is confirmed by another user. courtesy that doesn't seem to have returned.
dear Pompeo79,
1) the question if catrafa is the modrator refers to the fact that it suggests me to register at the forum, which I did in 2010 (other than how I could create a discussion!)
So I wondered if this wasn't a moderator's relevance.

2) also my question is clear and simple. Would you mind explaining the phrase from tarkus and how does my question answer?

Actually, I haven't been in the forum for several years, so I've been rereading all 13 rules... I don't think I've contravened any of them.
Of course, with everything you wrote, a minute to go through the presentations you could also find it.
as an incorrect word can generate an incomprehension. . .

No, I actually did wrong, I wrote "register" instead of presenting... I ask for venia.
Here... :smile:

However I would like to remember that the presentation is not obligatory but simply a good creativity, a good business card.

p.s.: on the profile of man shadow: written since May 2010.


good continuation
 
received complaints? :biggrin:
:smile: good creativity together with education and respect. :smile:
I would say regardless of any registration. Yeah? especially towards those seeking to help :smile:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top