AcCoreConsole 2018 Problem Loading CRX module

AcCoreConsole 2018 Problem Loading CRX module

Anonymous
Not applicable
1,705 Views
4 Replies
Message 1 of 5

AcCoreConsole 2018 Problem Loading CRX module

Anonymous
Not applicable

Hello,

 

I am attempting to attach hyperlinks to AutoCAD documents through AcCoreConsole batch processing. Unfortunately, the core console does not have native support for the hyperlink command. In order to circumvent this I took the ObjectARX module that the hyperlink command is associated with (acapp.arx) and renamed it to have the .crx file extension (I renamed it to hyper.crx). This has actually worked, but is a very inconsistent method. See the attached picture for what I mean by this.

 

As you can see, the hyperlink command is not recognized by AcCoreConsole on startup and my initial arxload statement threw back an error (invalid ARX file). However, passing through the exact same arxload command again was successful and allowed for the use of the hyperlink command in the console. It seems to work about 50% of the time in my testing.

 

I am quite confused by the inconsistency of this behavior. Obviously, the console is capable of running the hyperlink command. The only explanation I can think of is there are other commands in acapp.arx that reference libraries that are not supported by AcCoreConsole, but I still don't see why it would still work roughly half the time if that were the case.

 

I am aware that I could develop an ObjectArx app that could do what I am trying to do, but if there is a straightforward way to get the method detailed above to work, I would prefer to take this route as it seems much easier.

0 Likes
Accepted solutions (1)
1,706 Views
4 Replies
Replies (4)
Message 2 of 5

TheCADnoob
Mentor
Mentor

for giggles have you tried -HYPERLINK as opposed to HYPERLINK.. or is it the hyper.crx that loads intermittently?

CADnoob

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable

Good suggestion, but unfortunately "-hyperlink" is part of the same module (acapp.arx) as the version that raises a dialog box, so the exact same behavior is exhibited (see attached). You can also see in this attachment that the load command actually failed twice before working, which demonstrates the randomness of this even more.

0 Likes
Message 4 of 5

norman.yuan
Mentor
Mentor
Accepted solution

Not direct answer to your question, but since you posted on .NET API discussion forum, here is a thought.

 

I did not know/am not sure why that acCoreConsole.exe "does not have native support for HYPERLINK command". But it is very common that many built-in commands are not suitable to be used for unattended batch processing.

 

However, whether that is the case or not, attaching/detaching hyperlinks (to entities) can be easily done with both COM API and .NET API. Now that you use CoreConsole to batch process drawing to manipulate hyperlinks, you could write a few lines of code in .NET API add-in to do that and NETLOAD the dll into CoreConsole, and you do not even need to actually open the drawing file in CoreConsole: opening the drawing file as side database would allow you to manipulate entities' hyperlinks. 

 

Norman Yuan

Drive CAD With Code

EESignature

Message 5 of 5

Anonymous
Not applicable

This is a fantastic idea Norman! Not sure why I didn't try this in the first place. I suppose I got tunnel vision with my original train of thought. I will be sure to give this a try!

0 Likes