Beispiel #1
0
        // Removed in Revit 2017:
        //public void OnDaylightPortal( DaylightPortalNode node )
        //{
        //  Debug.WriteLine( "OnDaylightPortal: " + node.NodeName );
        //  Asset asset = node.GetAsset();
        //  Debug.WriteLine( "OnDaylightPortal: Asset:"
        //    + ( ( asset != null ) ? asset.Name : "Null" ) );
        //}

        public void OnRPC(RPCNode node)
        {
            Debug.WriteLine("OnRPC: " + node.NodeName);
            Asset asset = node.GetAsset();

            Debug.WriteLine("OnRPC: Asset:"
                            + ((asset != null) ? asset.Name : "Null"));
        }
Beispiel #2
0
        // OnRPC marks the beginning of export of an RPC object.
        // This method is only called for interface IPhotoRenderContext.
        public void OnRPC(
            RPCNode InRPCNode             // RPC content output node
            )
        {
            // We ignore the RPC node local transform since the RPC location point will be used later.

            // Add an RPC mesh actor in the hierarchy of Datasmith actors being processed.
            AddRPCActor(WorldTransformStack.Peek(), InRPCNode.GetAsset());
        }