Image from Word Doc.

Image from Word Doc.

Anonymous
Not applicable
600 Views
7 Replies
Message 1 of 8

Image from Word Doc.

Anonymous
Not applicable

Not sure if anyone here would have an answer for this or not. I am working on a add-in to save a word file to images, and then update the images that are placed on a sheet. I have found a library to do this (syncfusion's docio), and it works great in a stand alone windows form application.  When incorporate this into a Revit add-in, the images that are generated nolonger have antialiasing. Using the GDI+ graphic functions, I have even set the image to use AntiAliasing with the Smoothing Mode. Is there anything special with running under Revit that this wouldn't work, but outside of Revit it does?

0 Likes
601 Views
7 Replies
Replies (7)
Message 2 of 8

jeremytammik
Autodesk
Autodesk

Dear Michael,

 

Thank you for your query.

 

I am not aware of any issues such as you describe.

 

I must say that your workflow sounds a bit weird as well, though.

 

Why would you want to do such a thing?

 

Does it have to be a word file?

 

Is it text, or is it an image, or a combination of both?

 

I can imagine that better tools exist for all three scenarios...

 

Are some other exterior conditions forcing you to use the approach you describe?

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 8

Anonymous
Not applicable

Jeremy,

 

The word document is a set of Sheet Specs, specification placed on sheets. Our commerical interior projects utilize sheet specs instead of book specs. Images on sheets seem to be the easiest way to quickly update the specs after they have been edited in Word. This is where PDF support is very much needed. I was thinking about updating it in the future to utilize actual text elemnts, but this would produce something usable now while working out a way to postition and format text to match the specs.  I have attached 2 image.  One showing running just through a windows form application and the other ruuning as a Revit add-in.

0 Likes
Message 4 of 8

jeremytammik
Autodesk
Autodesk

Dear Michael,

 

Thank you for your explanation.

 

Your workflow still sounds weird to me.

 

So you are ismply inserting an image into Revit?

 

In that case, it is completely irrelevant whether it comes from word or somewhere else, isn't it?

 

I cannot imagine any way to influence this behaviour.

 

I also do not see what you need an add-in for... you can simply grab a screen snapshot from word, can't you?

 

Well, I do not think I have anything further to contribute to this, except to wish you luck in sorting it out.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 8

Anonymous
Not applicable
Try forcing antialiasing and / or texture filtering in your graphics driver. My guess is that Revit treats images as texture maps so the graphocs hardware is in control here. Can you maybe create the image at a larger resolution and then scale it down with smoothing? That's essentially how antialiasing works anyway...
0 Likes
Message 6 of 8

stever66
Advisor
Advisor

I'm not sure if this is your problem or not, but revit always changes imported images to 72 dpi.

i have trouble getting any inserted image to look acceptable.

i've seen some posts about how to scale an inserted image to make it look better, but I didnt quite follow what they were saying.

you might try importing into a drafting view and playing with the size of the imported image and the scale of the drafting view.

 

0 Likes
Message 7 of 8

Anonymous
Not applicable
I am implicitly forcing antialiasing. It just doesn't execute when run as an add-in. As for image resolution, I am already creating the images at a higher resolution so they look acceptable when printed. I could possibly double the resolution and see if that helps.
0 Likes
Message 8 of 8

Anonymous
Not applicable
I have the images at 150 dpi. When I place them they are to big, but I resize them to be the correct size. The issue is with the image generation. A library that export a word document page by page as image work when run outside of revit, but inside it doesn't function as expected. Thanks for the suggestions.
0 Likes