Giter Club home page Giter Club logo

solidedge.community.reader's People

Contributors

bigbadowl avatar jlnewell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solidedge.community.reader's Issues

Reading Properties with float type

Testing on 64 Bit Windows 7 I found that reading file properties with float type do not return the saved values.
After some investgation I found the error in GetDataBytes() in Structures.cs
My solution is tested only on 64 Bit:
private byte[] GetDataBytes()
{
var ret = new byte[IntPtr.Size + sizeof(int)];

        if (IntPtr.Size == 4)
        {
           BitConverter.GetBytes(p.ToInt32()).CopyTo(ret, 0);
        }
        else if (IntPtr.Size == 8)
        {
           BitConverter.GetBytes(p.ToInt64()).CopyTo(ret,0);
        }
        BitConverter.GetBytes(p2).CopyTo(ret, IntPtr.Size);

        return ret;
    }

Opening Document to Read Properties

When opening a document to read properties, I am trying to use the SolidEdgeCommunity.Reader.SolidEdgeDocument.Open method but it is requiring that the file is not already open and it opens the file as write. I tried to use a STREAM of the file instead but when trying to get the PropertySet, I get
"Unable to cast object of type 'SolidEdgeCommunity.Reader.Native.ReadOnlyIStorage' to type 'SolidEdgeCommunity.Reader.Native.IPropertySetStorage'."

Is there something wrong here or can we not read an already opened file with Community.Reader?

Code with FileStream:
using (var fs = new FileStream(fileLocationPath, FileMode.Open, FileAccess.Read))
{
var document = SolidEdgeCommunity.Reader.SolidEdgeDocument.Open(fs);
var propertySets = document.PropertySets;
}

UpdatePropertyTextDisplay() befor SaveAsEmf()

I need a method to update the properties text befor SaveAsEmf.
Drafts will be released with the Designmanager. When i export the draft in pdf, the property text status is not updated.
Do you see a chance to integrate this in the Reader?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.