You are viewing limited content. For full access, please sign in.

Question

Question

How to identify path of opened autocad drawing

SDK
asked on January 28, 2022

Hello Team,

I am working on custom solution between AutoCAD and Laserfiche.

As soon as we opened AutoCAD file from repository , it will open it on AutoCAD software. As soon as ,. I can change that file and closed it it will ask prompt that you want to save document either using overwrite , new and new version same as attached document.

My problem is this options not always visible so we have created custom code to open same dialog display as on Laserfiche but problem how we would be identified the file location using my custom program.

How Laserfiche can identified that location of the file ?

How we would able to find out the current repository path from which that file opened ? As for overwrite option we need to save that file under same folder.

 

Thanks,

Pratik Barot

path to save.png
path to save.png (512.49 KB)
0 0

Replies

replied on January 28, 2022

The Laserfiche client is the one that made the local copy of the file, so it knows where it put it and can watch it for modifications. I don't see how you could reliably insert your program into this process.

0 0
replied on January 28, 2022

Hello Sir,

Yes , I found that Laserfiche client can save open file in local environment and as soon as we will close that file it prompt the message which shows temporary path on my machine. ( see "autocad message when closed.png" )

Now for my custom programming , as soon as we closed that file , we need path of document within repository so that we will import that file on same location with version or overwrite options. 

We don't want ask customer to select the repository path again and again after close event. 

So kindly let me know ; how we will get that file location ? how Laserfiche client identified the location of file to show prompt overwrite , version ( see  path to save.png )

 

Thanks.

Pratik 

 

 

 

autocad message when closed.png
0 0
replied on January 31, 2022

There is no supported way for you to get this information from the Laserfiche client.

0 0
replied on February 10, 2022

But laserfiche can be doing same , as soon as any document closed , laserfiche client can identified the path of document from laserfiche repository.

 

What they are doing can you support that to me.

 

Thanks,

Pratik 

0 0
replied on February 10, 2022

When the user opens a document from the repository, the steps are roughly:

  1. Make a local copy of the contents of the repository entry.
  2. Launch the associated application.
  3. Wait for the process created in step 2 to terminate.
  4. Copy the local file back to the repository.

 

There is no need to discover where the data should be saved, it's known from the start. Even though the client knows this, it is not accessible to you. If you want to rewrite this process, you need to intercept the flow before step 1.

0 0
replied on February 11, 2022

Yes , I can understand that but we are creating our custom program where we need that path of the document within our asp.net application.

Thanks,

Pratik 

 

0 0
replied on February 15, 2022

As far as I understand what you are asking for, that information is not available - especially to an application running on a web server. That isn't to say that your big-picture solution isn't possible, but it's very hard to give any sort of concrete suggestions with so little information about what you are trying to build.

I'd suggest talking to your RM about getting some consulting time with a pre-sales engineer about how you can design this integration.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.