Files
RevitSdkSamples/snapshot/2008/SDK/Samples/CreateViewSection/CS/ReadMe_CreateViewSection.rtf
T

69 lines
40 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ JLþÿÿÿIÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Áq` ñR¿bjbjqPqP .(::ÿÿÿÿÿÿ¤òòòòòòòŽŽŽŽLÚV20úúúúúÕÕÕ±,&×1×1×1×1×1×1$†4hî6~û1òÕÕÕÕÕû1òòúúÛ2===Õròúòú±,=Õ±,==âi)¸òòI+úî ð®¼á0#ÇŽG!*±,&20V27*l7]Öl7,I+l7òI+hÕÕ=ÕÕÕÕÕû1û13
ÕÕÕV2ÕÕÕÕ¤ª äª òòòòòòÿÿÿÿ Application: CreateViewSection
Revit product and version: Revit Structure 2008
Last Modified: 8/12/2006
Modified By: LL Autodesk HSL
Programming Language: C#
Subject: This sample shows how to generate a section view across the mid point of a linear element, such as a wall, floor or beam
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Document
Autodesk.Revit.Geometry.BoundingBoxXYZ
Autodesk.Revit.Element
Autodesk.Revit.ElementSet
Autodesk.Revit.Elements.Wall
Autodesk.Revit.LocationCurve
Autodesk.Revit.Geometry.Line
Autodesk.Revit.Elements.FamilyInstance
Autodesk.Revit.Geometry.Transform
Autodesk.Revit.Structural.AnalyticalModel
Autodesk.Revit.Structural.AnalyticalModelFrame
Autodesk.Revit.Geometry.Curve
Autodesk.Revit.Elements.Floor
Autodesk.Revit.Structural.AnalyticalModelFloor
Project Files:
Command.vb
It contains the class Command which implements interface IExternalCommand and the generating process of the section view across the mid point of a linear element.
XYZMath.cs
It gives operations about point and vector presented by XYZ structure.
Description:
This sample provides following functionalities.
Retrieve the selected linear element.
Generate a BoundingBoxXYZ instance which will be used in NewViewSection() method
set its Max and Min property
Generate a Transform instance as the Transform property of BoundingBoxXYZ which defines the Origin and the directions (including RightDirection, UpDirection and ViewDirection) of the created view
Create the section view using the BoundingBoxXYZ.
Instructions:
Open Revit Structure 2008.
Draw a linear element (wall, floor or beam).
Select the element and execute the external command.
 
9:NOUV]^ghtuñä×Êñä·©ž‹}o^M}@hW3„hROJQJ^J!hW3„hRB*OJQJ^Jphÿ!hr8ƒOJPJQJ^JnHo(tHnhR6OJQJ^JhW3„hR5OJQJ^J$h6@5OJPJQJ^JnHo(tHh6@5OJQJ^Jh_zÛhëg«OJQJ^Jo($hºh_zÛOJPJQJ^JnHtHhÔ5\hëg«OJQJ^JhÔ5\hÔ5\OJQJ^JhW3„hëg«OJQJ^JhW3„hëg«5OJQJ^JOhžŸ! " , L d ¢ ¼ Ù ö 
:
\
µ
Ó
ñ
! ùôùïïôôôùâââââââââââââââô „´„´^„´`„´gdšJ€gdRgdëg«@&gdRþuvwšžŸ§¨©´ë×͹«ŒrdVB5hV=„hROJQJ^J'hV=„h>OJPJQJ^JnHo(tHhRhëg«6OJQJ^JhW3„hëg«5OJQJ^JhRhëg«OJQJ^JhW3„hROJQJ^J!h…OÝOJPJQJ^JnHo(tHhRB*OJQJ^JphÿhW3„hR5OJQJ^J'hë`hROJPJQJ^JnHo(tHhë`OJQJ^J'h6@h** OJPJQJ^JnHo(tH'h6@h} †OJPJQJ^JnHo(tH
´ÁÉñó ! " * + , K L c îÞËî˸¤–‰hP9,hšJ€h:OJPJQJ^JmH nHsH tH/hšJ€hROJPJQJ^JmH nHo(sH tH,hšJ€hëg«OJPJQJ^JmH nHsH tHhROJQJ^JhW3„hëg«OJQJ^JhW3„hëg«5OJQJ^J'h²U<hêiOJPJQJ^JnHo(tH$hs676OJPJQJ^JnHo(tH$h²U<h²U<OJPJQJ^JnHtHh²U<OJPJQJ^JnHtH!h²U<OJPJQJ^JnHo(tH
c d Š ¡ ¢ » ¼ Ø Ù õ ö 

9
:
[
\
´
µ
Ò
Ó
ð