Coder Social home page Coder Social logo

xbimbcf's People

Contributors

cbenghi avatar lloydpickering avatar martin1cerny avatar

Stargazers

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

Watchers

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

xbimbcf's Issues

BCF DOCUMENTATION

Hello,
can you have documentation BCF xBim ? for simple export and import.

TopicStatus is wrong

The TopicStatus property is not recognized as an Attribute for the Topic, but as an element. My BCF reader is not recognizing BCF status

screenshot-github com-2021 04 08-13_08_10

Snapshot files are in wrong folder

Hi,

When adding snapshots to a topic, the snapshot file is not added to the topic folder in the bcfzip file that is created (it is instead in the root folder). I traced down the reason for this in the \Xbim.BCF\BCF.cs file, in the Serialize() method. For snapshots, the code should be something like this:

foreach (KeyValuePair<String, byte[]> img in t.Snapshots)
{
	string snapshotName = string.Format("{0}/{1}", t.Markup.Topic.Guid, img.Key);
	var png = archive.CreateEntry(snapshotName);
	using (var pngStream = png.Open())
	{
		using (var pngWriter = new BinaryWriter(pngStream))
		{
			pngWriter.Write(img.Value);
			pngWriter.Close();
		}
	}
}

"BCFComment - Status is mandatory"

Hi,
we are trying to load several BCF's and we are not able to load even one of them. We have BCF's of all versions from revit (sending example - these files shut down with exception) and one from live example from BIMCollab ("BCFComment - Status is mandatory" when trying to load).

Here is implementation. Are we doing something wrong?
byte[] file = File.ReadAllBytes(@"path\example.bcfzip");
Stream s = new MemoryStream(file);
var bcf = BCF.Deserialize(s);

rev.zip

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.